index.dart 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. class Agreement extends StatelessWidget {
  4. const Agreement({Key? key}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return Scaffold(
  8. appBar: AppBar(
  9. elevation: 0,
  10. centerTitle: true,
  11. backgroundColor: Colors.white,
  12. title: Text(
  13. '用户协议及隐私政策',
  14. style: TextStyle(
  15. color: Colors.black,
  16. fontSize: 17.sp,
  17. letterSpacing: 2,
  18. fontWeight: FontWeight.bold),
  19. ),
  20. ),
  21. body: Container(
  22. color: const Color(0xFFFFFFFF),
  23. padding: EdgeInsets.all(15.w),
  24. child: Column(
  25. children: [
  26. Container(
  27. margin: EdgeInsets.fromLTRB(0, 0, 0, 30.h),
  28. child: Row(
  29. mainAxisAlignment: MainAxisAlignment.center,
  30. children: [
  31. Image(image: const AssetImage(
  32. 'images/icons/decorate.png'
  33. ),width: 16.5.w),
  34. Text('用户协议',
  35. style: TextStyle(
  36. fontSize: 20.sp,
  37. fontWeight: FontWeight.bold,
  38. color: const Color(0xFF222222)
  39. ),
  40. ),
  41. Image(image: const AssetImage('images/icons/decorate.png'),width: 16.5.w),
  42. ],
  43. ),
  44. ),
  45. ],
  46. ),
  47. ),
  48. );
  49. }
  50. }