contact_us.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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(left: 60, right: 60, top: 180.h),
  23. child: Text("微信咨询",
  24. style: TextStyle(fontSize: textSize, color: Colors.black)),
  25. ),
  26. Container(
  27. margin: EdgeInsets.only(left: 60, right: 60, top: 30.h),
  28. child: Image(
  29. image: NetworkImage(AppConfig.configWechatUrl),
  30. width: imageWidth,
  31. height: imageWidth,
  32. ),
  33. ),
  34. ],
  35. ),
  36. );
  37. }
  38. }