faqs_page.dart 1.5 KB

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