Hibok
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

149 líneas
6.3 KiB

  1. import 'package:chat/data/constants.dart';
  2. import 'package:chat/generated/i18n.dart';
  3. import 'package:chat/utils/CustomUI.dart';
  4. import 'package:chat/utils/screen.dart';
  5. import 'package:flutter/material.dart';
  6. class UserAgreement extends StatefulWidget {
  7. UserAgreement({Key key}) : super(key: key);
  8. _UserAgreementState createState() => _UserAgreementState();
  9. }
  10. class _UserAgreementState extends State<UserAgreement> {
  11. Widget _buildTitle(str) {
  12. return Container(
  13. margin: EdgeInsets.only(top: 20, bottom: 0),
  14. alignment: Alignment.center,
  15. width: Screen.width,
  16. child: Text(
  17. str,
  18. textScaleFactor: 1.0,
  19. style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600),
  20. ),
  21. );
  22. }
  23. Widget _buildH1(str) {
  24. return Container(
  25. margin: EdgeInsets.only(top: 10, bottom: 10),
  26. alignment: Alignment.centerLeft,
  27. width: Screen.width,
  28. child: Text(
  29. str,
  30. textScaleFactor: 1.0,
  31. style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600),
  32. ),
  33. );
  34. }
  35. Widget _buildFoot(str) {
  36. return Container(
  37. margin: EdgeInsets.only(top: 10, bottom: 10),
  38. alignment: Alignment.centerRight,
  39. width: Screen.width,
  40. child: Text(
  41. str,
  42. textScaleFactor: 1.0,
  43. style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600),
  44. ),
  45. );
  46. }
  47. Widget _buildContent(str) {
  48. return Container(
  49. alignment: Alignment.centerLeft,
  50. width: Screen.width,
  51. child: Text(
  52. ' ' + str,
  53. textScaleFactor: 1.0,
  54. style: TextStyle(fontSize: 14, height: 1.35),
  55. ),
  56. );
  57. }
  58. @override
  59. Widget build(BuildContext context) {
  60. return Scaffold(
  61. appBar: AppBar(
  62. backgroundColor: AppColors.NewAppbarBgColor,
  63. title: Text(
  64. I18n.of(context).user_agreement,
  65. style: TextStyle(color: AppColors.NewAppbarTextColor),
  66. //I18n.of(context).UG_LINE0,
  67. textScaleFactor: 1.0,
  68. ),
  69. centerTitle: true,
  70. leading: CustomUI.buildCustomLeading(context),
  71. ),
  72. body: SafeArea(
  73. child: Container(
  74. padding: EdgeInsets.only(left: 5, right: 5),
  75. color: Colors.white,
  76. height: MediaQuery.of(context).size.height,
  77. child: SingleChildScrollView(
  78. child: Column(
  79. children: <Widget>[
  80. // _buildTitle(I18n.of(context).UG_LINE0),
  81. // _buildH1(I18n.of(context).UG_LINE1),
  82. // _buildContent(I18n.of(context).UG_LINE2),
  83. // _buildContent(I18n.of(context).UG_LINE3),
  84. // _buildH1(I18n.of(context).UG_LINE4),
  85. // _buildContent(I18n.of(context).UG_LINE5),
  86. // _buildContent(I18n.of(context).UG_LINE6),
  87. // _buildContent(I18n.of(context).UG_LINE7),
  88. // _buildContent(I18n.of(context).UG_LINE8),
  89. // _buildContent(I18n.of(context).UG_LINE9),
  90. // _buildContent(I18n.of(context).UG_LINE10),
  91. // _buildContent(I18n.of(context).UG_LINE11),
  92. // _buildContent(I18n.of(context).UG_LINE12),
  93. // _buildContent(I18n.of(context).UG_LINE13),
  94. // _buildContent(I18n.of(context).UG_LINE14),
  95. // _buildContent(I18n.of(context).UG_LINE15),
  96. // _buildContent(I18n.of(context).UG_LINE16),
  97. // _buildContent(I18n.of(context).UG_LINE17),
  98. // _buildContent(I18n.of(context).UG_LINE18),
  99. // _buildContent(I18n.of(context).UG_LINE19),
  100. // _buildContent(I18n.of(context).UG_LINE20),
  101. // _buildContent(I18n.of(context).UG_LINE21),
  102. // _buildContent(I18n.of(context).UG_LINE22),
  103. // _buildContent(I18n.of(context).UG_LINE23),
  104. // _buildContent(I18n.of(context).UG_LINE24),
  105. // _buildContent(I18n.of(context).UG_LINE25),
  106. // _buildContent(I18n.of(context).UG_LINE26),
  107. // _buildContent(I18n.of(context).UG_LINE27),
  108. // _buildContent(I18n.of(context).UG_LINE28),
  109. // _buildContent(I18n.of(context).UG_LINE29),
  110. // _buildH1(I18n.of(context).UG_LINE30),
  111. // _buildContent(I18n.of(context).UG_LINE31),
  112. // _buildH1(I18n.of(context).UG_LINE32),
  113. // _buildContent(I18n.of(context).UG_LINE33),
  114. // _buildH1(I18n.of(context).UG_LINE34),
  115. // _buildContent(I18n.of(context).UG_LINE35),
  116. // _buildContent(I18n.of(context).UG_LINE36),
  117. // _buildContent(I18n.of(context).UG_LINE37),
  118. // _buildContent(I18n.of(context).UG_LINE38),
  119. // _buildContent(I18n.of(context).UG_LINE39),
  120. // _buildContent(I18n.of(context).UG_LINE40),
  121. // _buildContent(I18n.of(context).UG_LINE41),
  122. // _buildContent(I18n.of(context).UG_LINE42),
  123. // _buildH1(I18n.of(context).UG_LINE43),
  124. // _buildContent(I18n.of(context).UG_LINE44),
  125. // _buildContent(I18n.of(context).UG_LINE45),
  126. // _buildContent(I18n.of(context).UG_LINE46),
  127. // _buildContent(I18n.of(context).UG_LINE47),
  128. // _buildContent(I18n.of(context).UG_LINE48),
  129. // _buildContent(I18n.of(context).UG_LINE49),
  130. // _buildContent(I18n.of(context).UG_LINE50),
  131. // _buildH1(I18n.of(context).UG_LINE51),
  132. // _buildContent(I18n.of(context).UG_LINE52),
  133. // _buildContent(I18n.of(context).UG_LINE53),
  134. // _buildContent(I18n.of(context).UG_LINE54),
  135. // _buildContent(I18n.of(context).UG_LINE55),
  136. // _buildFoot(I18n.of(context).UG_LINE56)
  137. ],
  138. ),
  139. ))));
  140. }
  141. }