faqs_page.dart 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import 'package:auto_route/annotations.dart';
  2. import 'package:eitc_erm_dental_flutter/exts.dart';
  3. import 'package:eitc_erm_dental_flutter/funcs.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:flutter_screenutil/flutter_screenutil.dart';
  6. ///常见问题页面
  7. @RoutePage(name: "faqsRoute")
  8. class FaqsPage extends StatelessWidget {
  9. const FaqsPage({super.key});
  10. @override
  11. Widget build(BuildContext context) {
  12. return Scaffold(
  13. appBar: AppBar(
  14. centerTitle: true,
  15. title: Text(getS().faqs),
  16. ),
  17. body: SafeArea(
  18. child: SingleChildScrollView(
  19. child: Padding(
  20. padding: EdgeInsets.symmetric(horizontal: 16.w),
  21. child: Column(
  22. children: [_getFaq1(context)],
  23. ),
  24. ),
  25. )),
  26. );
  27. }
  28. Widget _getFaq1(BuildContext context) {
  29. return Column(
  30. crossAxisAlignment: CrossAxisAlignment.start,
  31. children: [
  32. Container(
  33. padding: EdgeInsets.symmetric(horizontal: 0.w, vertical: 5.h),
  34. child: Text(
  35. getS().faq1Title,
  36. style: context.titleSmall,
  37. ),
  38. ),
  39. SizedBox(
  40. height: 10.h,
  41. ),
  42. Text(
  43. getS().faq1Desc1,
  44. style: context.bodySmall,
  45. ),
  46. SizedBox(
  47. height: 8.h,
  48. ),
  49. Text(getS().faq1Desc2, style: context.bodySmall),
  50. SizedBox(
  51. height: 8.h,
  52. ),
  53. Text(getS().faq1Desc3, style: context.bodySmall),
  54. ],
  55. );
  56. }
  57. }