contact_us.dart 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import 'package:hengyi/config/config.dart';
  4. import '../utils/common_util.dart';
  5. class ContactUSWidget extends StatelessWidget {
  6. ContactUSWidget({super.key});
  7. var textSize = 0.0;
  8. var imageWidth = 0.0;
  9. @override
  10. Widget build(BuildContext context) {
  11. if(Util.isWeb()){
  12. textSize = 30.sp;
  13. imageWidth = 230.r;
  14. }else{
  15. textSize = 60.sp;
  16. imageWidth = 500.w;
  17. }
  18. return SingleChildScrollView(
  19. child: Column(
  20. children: [
  21. Container(
  22. margin: EdgeInsets.only(top: 100.h),
  23. child: Text(
  24. "联系我们",
  25. style: TextStyle(fontSize: textSize, color: Colors.black),
  26. ),
  27. ),
  28. Container(
  29. margin: EdgeInsets.only(left: 60, right: 60, top: 30.h),
  30. child: Text(
  31. AppConfig.configPhone,
  32. style: TextStyle(fontSize: textSize, color: Colors.black),
  33. ),
  34. ),
  35. Container(
  36. margin: EdgeInsets.only(left: 60, right: 60, top: 90.h),
  37. child: Text("微信咨询",
  38. style: TextStyle(fontSize: textSize, color: Colors.black)),
  39. ),
  40. Container(
  41. margin: EdgeInsets.only(left: 60, right: 60, top: 30.h),
  42. child: Image(
  43. image: NetworkImage(AppConfig.configWechatUrl),
  44. width: imageWidth,
  45. height: imageWidth,
  46. ),
  47. ),
  48. ],
  49. ),
  50. );
  51. }
  52. }