common_footer.dart 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import 'package:fuwei/config/config.dart';
  4. import '../utils/common_util.dart';
  5. class CommonFooterWidget extends StatelessWidget {
  6. CommonFooterWidget({super.key});
  7. var textSize = 0.0;
  8. var bottomMargin = 0.0;
  9. var logoWidth = 0.0;
  10. @override
  11. Widget build(BuildContext context) {
  12. if (Util.isWeb()) {
  13. textSize = 18.sp;
  14. bottomMargin = 10.r;
  15. logoWidth = 80.h;
  16. } else {
  17. textSize = 44.sp;
  18. bottomMargin = 50.r;
  19. logoWidth = 100.h;
  20. }
  21. return Column(
  22. mainAxisAlignment: MainAxisAlignment.center,
  23. children: [
  24. Text(AppConfig.configWebZhuti,
  25. style: TextStyle(fontSize: textSize, color: Colors.black)),
  26. Padding(
  27. padding: EdgeInsets.all(10.r),
  28. child: Row(
  29. mainAxisAlignment: MainAxisAlignment.center,
  30. children: [
  31. Text("联系电话:${AppConfig.configPhone}",
  32. style: TextStyle(fontSize: textSize, color: Colors.black)),
  33. Padding(
  34. padding: EdgeInsets.only(left: 30.w, right: 30.w),
  35. child: Text("地址:${AppConfig.configAddress}",
  36. style: TextStyle(fontSize: textSize, color: Colors.black)),
  37. ),
  38. ],
  39. ),
  40. ),
  41. Padding(
  42. padding: EdgeInsets.only(bottom: bottomMargin),
  43. child: Text("备案号:${AppConfig.configWebBeian}",
  44. style: TextStyle(fontSize: textSize, color: Colors.black)),
  45. )
  46. ],
  47. );
  48. }
  49. }