about_us.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:flutter_screenutil/flutter_screenutil.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:hengyi/config/config.dart';
  4. import '../utils/common_util.dart';
  5. class AboutUSWidget extends StatelessWidget {
  6. AboutUSWidget({super.key});
  7. var textSize = 0.0;
  8. var contentSize = 0.0;
  9. var margin = 0.0;
  10. @override
  11. Widget build(BuildContext context) {
  12. if (Util.isWeb()) {
  13. textSize = 30.sp;
  14. contentSize = 22.sp;
  15. margin = 0.3.sw;
  16. } else {
  17. textSize = 60.sp;
  18. contentSize = 44.sp;
  19. margin = 0.1.sw;
  20. }
  21. return SingleChildScrollView(
  22. child: Column(
  23. children: [
  24. Container(
  25. margin: EdgeInsets.only(top: 100.h),
  26. child: Text(
  27. "关于我们",
  28. style: TextStyle(fontSize: textSize, color: Colors.black),
  29. ),
  30. ),
  31. Container(
  32. margin: EdgeInsets.only(left: margin, right: margin, top: 30.h),
  33. child: Text(
  34. AppConfig.configContent,
  35. style: TextStyle(fontSize: contentSize, color: Colors.black),
  36. )),
  37. ],
  38. ),
  39. );
  40. }
  41. }