Advertisement
bngoding

Untitled

Dec 5th, 2021
1,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 46.80 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_bloc/flutter_bloc.dart';
  3. import 'package:flutter_sda/auth/register/bloc/register_event.dart';
  4. import 'package:flutter_sda/auth/register/bloc/register_state.dart';
  5. import 'package:flutter_sda/shared/theme.dart';
  6.  
  7. import '../bloc/register_bloc.dart';
  8.  
  9. class Register extends StatefulWidget {
  10.   const Register({Key? key, required this.controller}) : super(key: key);
  11.  
  12.   final TextEditingController controller;
  13.  
  14.   @override
  15.   _Register createState() => _Register();
  16. }
  17.  
  18. class _Register extends State<Register> {
  19.   var currentStep = 0;
  20.  
  21.   var obscureText = true;
  22.   var isCheck = false;
  23.   var value = false;
  24.   bool rememberpwd = false;
  25.   final _passwordController = TextEditingController();
  26.   final _reTypePasswordController = TextEditingController();
  27.   final _usernameController = TextEditingController();
  28.   final _name = TextEditingController();
  29.   final _email = TextEditingController();
  30.   final _tenant_id = TextEditingController();
  31.   final _password = TextEditingController();
  32.   final _confirm_password = TextEditingController();
  33.   final _company_name = TextEditingController();
  34.   final _sector_industry = TextEditingController();
  35.   final _position = TextEditingController();
  36.   final _company_address = TextEditingController();
  37.  
  38.   int _counter = 0;
  39.   late bool _isButtonDisabled;
  40.  
  41.   void _incrementCounter() {
  42.     setState(() {
  43.       _isButtonDisabled = true;
  44.       _counter++;
  45.     });
  46.   }
  47.  
  48.   @override
  49.   void initState() {
  50.     _isButtonDisabled = true;
  51.   }
  52.  
  53.   @override
  54.   Widget build(BuildContext context) {
  55.  
  56.     _onRegisterButtonPressed() {
  57.       BlocProvider.of<RegisterBloc>(context).add(RegisterButtonPressed(
  58.           name: _name.text,
  59.           email: _email.text,
  60.           tenant_id: _tenant_id.text,
  61.           username: _usernameController.text,
  62.           password: _password.text,
  63.           confirm_password: _confirm_password.text));
  64.     }
  65.  
  66.     return BlocListener<RegisterBloc, RegisterState>(
  67.       listener: (context, state) {
  68.         if (state is RegisterFailure) {
  69.           Scaffold.of(context).showSnackBar(SnackBar(
  70.               content: Text('${state.error}'), backgroundColor: Colors.red));
  71.         }
  72.       },
  73.       child: BlocBuilder<RegisterBloc, RegisterState>(
  74.         builder: (context, state) {
  75.           return MaterialApp(
  76.             home: DefaultTabController(
  77.               length: 2,
  78.               child: Scaffold(
  79.                   body: Container(
  80.                     width: double.infinity,
  81.                     decoration: BoxDecoration(
  82.                         image: DecorationImage(
  83.                           image: AssetImage("assets/images/bg_login.png"),
  84.                           fit: BoxFit.cover,
  85.                         )),
  86.                     child: Column(
  87.                       crossAxisAlignment: CrossAxisAlignment.start,
  88.                       children: <Widget>[
  89.                         SizedBox(height: 105),
  90.                         Expanded(
  91.                           child: Container(
  92.                               decoration: BoxDecoration(
  93.                                   color: Colors.white,
  94.                                   borderRadius: BorderRadius.only(
  95.                                       topLeft: Radius.circular(22),
  96.                                       topRight: Radius.circular(22))),
  97.                               child: Column(
  98.                                 children: [
  99.                                   SizedBox(
  100.                                     height: 23,
  101.                                   ),
  102.                                   Text(
  103.                                     "Daftar Akun Baru",
  104.                                     style: blackTextTitleThirtyTwo,
  105.                                   ),
  106.                                   Expanded(
  107.                                     child: Container(
  108.                                         padding:
  109.                                         EdgeInsets.symmetric(horizontal: 47),
  110.                                         child: Container(
  111.                                           child: Scaffold(
  112.                                             appBar: PreferredSize(
  113.                                               preferredSize:
  114.                                               Size.fromHeight(kToolbarHeight),
  115.                                               child: SafeArea(
  116.                                                 child: Column(
  117.                                                   children: [
  118.                                                     TabBar(tabs: [
  119.                                                       Text(
  120.                                                         "1. Data Diri",
  121.                                                         style:
  122.                                                         newBlackPrimaySixTeen,
  123.                                                       ),
  124.                                                       Text(
  125.                                                         "2. Perusahaan",
  126.                                                         style:
  127.                                                         newBlackPrimaySixTeen,
  128.                                                       )
  129.                                                     ])
  130.                                                   ],
  131.                                                 ),
  132.                                               ),
  133.                                             ),
  134.                                             body: TabBarView(children: [
  135.                                               Expanded(
  136.                                                   child: SingleChildScrollView(
  137.                                                     child: Column(children: [
  138.                                                       SingleChildScrollView(
  139.                                                         child: Column(
  140.                                                           children: [
  141.                                                             Container(
  142.                                                               color: whiteTextBox,
  143.                                                               height: 48,
  144.                                                               child: TextFormField(
  145.                                                                 controller: _usernameController,
  146.                                                                 maxLines: 1,
  147.                                                                 decoration: InputDecoration(
  148.                                                                     contentPadding:
  149.                                                                     EdgeInsets.only(
  150.                                                                         top: 14.5,
  151.                                                                         bottom:
  152.                                                                         14.5,
  153.                                                                         left: 10),
  154.                                                                     border: OutlineInputBorder(
  155.                                                                         borderRadius:
  156.                                                                         BorderRadius
  157.                                                                             .circular(
  158.                                                                             5),
  159.                                                                         borderSide:
  160.                                                                         BorderSide(
  161.                                                                             color:
  162.                                                                             grayPrimaryTwo)),
  163.                                                                     hintText:
  164.                                                                     "Nama Pengguna",
  165.                                                                     hintStyle:
  166.                                                                     smallHintGray),
  167.                                                               ),
  168.                                                             ),
  169.                                                             SizedBox(
  170.                                                               height: 37,
  171.                                                             ),
  172.                                                             Container(
  173.                                                               color: whiteTextBox,
  174.                                                               height: 48,
  175.                                                               child: TextFormField(
  176.                                                                 controller: _email,
  177.                                                                 maxLines: 1,
  178.                                                                 decoration: InputDecoration(
  179.                                                                     contentPadding:
  180.                                                                     EdgeInsets.only(
  181.                                                                         top: 14.5,
  182.                                                                         bottom:
  183.                                                                         14.5,
  184.                                                                         left: 10),
  185.                                                                     border: OutlineInputBorder(
  186.                                                                         borderRadius:
  187.                                                                         BorderRadius
  188.                                                                             .circular(
  189.                                                                             5),
  190.                                                                         borderSide:
  191.                                                                         BorderSide(
  192.                                                                             color:
  193.                                                                             grayPrimaryTwo,
  194.                                                                             width:
  195.                                                                             5.0)),
  196.                                                                     hintText:
  197.                                                                     "Email Pengguna",
  198.                                                                     hintStyle:
  199.                                                                     smallHintGray),
  200.                                                               ),
  201.                                                             ),
  202.                                                             SizedBox(
  203.                                                               height: 37,
  204.                                                             ),
  205.                                                             Container(
  206.                                                               color: whiteTextBox,
  207.                                                               height: 48,
  208.                                                               child: TextFormField(
  209.                                                                 maxLines: 1,
  210.                                                                 controller: _tenant_id,
  211.                                                                 decoration: InputDecoration(
  212.                                                                     contentPadding:
  213.                                                                     EdgeInsets.only(
  214.                                                                         top: 14.5,
  215.                                                                         bottom:
  216.                                                                         14.5,
  217.                                                                         left: 10),
  218.                                                                     border: OutlineInputBorder(
  219.                                                                         borderRadius:
  220.                                                                         BorderRadius
  221.                                                                             .circular(
  222.                                                                             5),
  223.                                                                         borderSide:
  224.                                                                         BorderSide(
  225.                                                                             color:
  226.                                                                             grayPrimaryTwo)),
  227.                                                                     hintText:
  228.                                                                     "(+62) Nomor Telepon",
  229.                                                                     hintStyle:
  230.                                                                     smallHintGray),
  231.                                                               ),
  232.                                                             ),
  233.                                                             SizedBox(
  234.                                                               height: 37,
  235.                                                             ),
  236.                                                             Container(
  237.                                                               color: whiteTextBox,
  238.                                                               height: 48,
  239.                                                               child: TextFormField(
  240.                                                                 validator: (value) {
  241.                                                                   if (value!
  242.                                                                       .isNotEmpty) {
  243.                                                                     return 'Kata Sandi Tidak Boleh Kosong';
  244.                                                                   } else {
  245.                                                                     return null;
  246.                                                                   }
  247.                                                                 },
  248.                                                                 controller:
  249.                                                                 _passwordController,
  250.                                                                 obscureText:
  251.                                                                 obscureText,
  252.                                                                 maxLines: 1,
  253.                                                                 decoration:
  254.                                                                 InputDecoration(
  255.                                                                     suffixIcon:
  256.                                                                     GestureDetector(
  257.                                                                       onTap: () {
  258.                                                                         setState(
  259.                                                                                 () {
  260.                                                                               obscureText =
  261.                                                                               !obscureText;
  262.                                                                             });
  263.                                                                       },
  264.                                                                       child:
  265.                                                                       obscureText
  266.                                                                           ? Icon(
  267.                                                                         Icons.visibility_off,
  268.                                                                         color: Colors.grey,
  269.                                                                       )
  270.                                                                           : Icon(
  271.                                                                         Icons.visibility,
  272.                                                                         color: Colors.grey,
  273.                                                                       ),
  274.                                                                     ),
  275.                                                                     contentPadding:
  276.                                                                     EdgeInsets.only(
  277.                                                                         top:
  278.                                                                         14.5,
  279.                                                                         bottom:
  280.                                                                         14.5,
  281.                                                                         left:
  282.                                                                         10),
  283.                                                                     border: OutlineInputBorder(
  284.                                                                         borderRadius:
  285.                                                                         BorderRadius
  286.                                                                             .circular(
  287.                                                                             5),
  288.                                                                         borderSide:
  289.                                                                         BorderSide(
  290.                                                                             color:
  291.                                                                             grayPrimaryTwo)),
  292.                                                                     hintText:
  293.                                                                     "Kata Sandi",
  294.                                                                     hintStyle:
  295.                                                                     smallHintGray),
  296.                                                               ),
  297.                                                             ),
  298.                                                             SizedBox(
  299.                                                               height: 37,
  300.                                                             ),
  301.                                                             Container(
  302.                                                               color: whiteTextBox,
  303.                                                               height: 48,
  304.                                                               child: TextFormField(
  305.                                                                 validator: (value) {
  306.                                                                   if (value!
  307.                                                                       .isNotEmpty) {
  308.                                                                     return 'Kata Sandi Tidak Boleh Kosong';
  309.                                                                   } else {
  310.                                                                     return null;
  311.                                                                   }
  312.                                                                 },
  313.                                                                 controller:
  314.                                                                 _reTypePasswordController,
  315.                                                                 obscureText:
  316.                                                                 obscureText,
  317.                                                                 maxLines: 1,
  318.                                                                 decoration:
  319.                                                                 InputDecoration(
  320.                                                                     suffixIcon:
  321.                                                                     GestureDetector(
  322.                                                                       onTap: () {
  323.                                                                         setState(
  324.                                                                                 () {
  325.                                                                               obscureText =
  326.                                                                               !obscureText;
  327.                                                                             });
  328.                                                                       },
  329.                                                                       child:
  330.                                                                       obscureText
  331.                                                                           ? Icon(
  332.                                                                         Icons.visibility_off,
  333.                                                                         color: Colors.grey,
  334.                                                                       )
  335.                                                                           : Icon(
  336.                                                                         Icons.visibility,
  337.                                                                         color: Colors.grey,
  338.                                                                       ),
  339.                                                                     ),
  340.                                                                     contentPadding:
  341.                                                                     EdgeInsets.only(
  342.                                                                         top:
  343.                                                                         14.5,
  344.                                                                         bottom:
  345.                                                                         14.5,
  346.                                                                         left:
  347.                                                                         10),
  348.                                                                     border: OutlineInputBorder(
  349.                                                                         borderRadius:
  350.                                                                         BorderRadius
  351.                                                                             .circular(
  352.                                                                             5),
  353.                                                                         borderSide: BorderSide(
  354.                                                                             color:
  355.                                                                             grayPrimaryTwo,
  356.                                                                             width:
  357.                                                                             0.5)),
  358.                                                                     hintText:
  359.                                                                     "Input Ulang Kata Sandi",
  360.                                                                     hintStyle:
  361.                                                                     smallHintGray),
  362.                                                               ),
  363.                                                             ),
  364.                                                             SizedBox(
  365.                                                               height: 69,
  366.                                                             ),
  367.                                                             Padding(
  368.                                                               padding: const EdgeInsets
  369.                                                                   .symmetric(
  370.                                                                   vertical: 0),
  371.                                                               child: Container(
  372.                                                                 height: 52,
  373.                                                                 width: double.infinity,
  374.                                                                 child: RaisedButton(
  375.                                                                   onPressed: () {},
  376.                                                                   elevation: 5,
  377.                                                                   shape: RoundedRectangleBorder(
  378.                                                                       borderRadius:
  379.                                                                       BorderRadius
  380.                                                                           .circular(
  381.                                                                           15),
  382.                                                                       side: BorderSide(
  383.                                                                           color:
  384.                                                                           grayPrimaryTwo)),
  385.                                                                   color: grayDarkTwo,
  386.                                                                   padding:
  387.                                                                   EdgeInsets.all(
  388.                                                                       10),
  389.                                                                   child: Text(
  390.                                                                     "Selanjutnya",
  391.                                                                     style:
  392.                                                                     whitePrimaryTextStyle,
  393.                                                                   ),
  394.                                                                 ),
  395.                                                               ),
  396.                                                             ),
  397.                                                             SizedBox(
  398.                                                               height: 37,
  399.                                                             ),
  400.                                                             Padding(
  401.                                                               padding: const EdgeInsets
  402.                                                                   .symmetric(
  403.                                                                   vertical: 0),
  404.                                                               child: Container(
  405.                                                                 height: 52,
  406.                                                                 width: double.infinity,
  407.                                                                 child: RaisedButton(
  408.                                                                   onPressed: () {},
  409.                                                                   elevation: 5,
  410.                                                                   shape: RoundedRectangleBorder(
  411.                                                                       borderRadius:
  412.                                                                       BorderRadius
  413.                                                                           .circular(
  414.                                                                           15),
  415.                                                                       side: BorderSide(
  416.                                                                           color:
  417.                                                                           purplePrimary)),
  418.                                                                   color: Colors.white,
  419.                                                                   padding:
  420.                                                                   EdgeInsets.all(
  421.                                                                       10),
  422.                                                                   child: Text(
  423.                                                                     "Batal",
  424.                                                                     style:
  425.                                                                     purplePrimaryTextStyle,
  426.                                                                   ),
  427.                                                                 ),
  428.                                                               ),
  429.                                                             ),
  430.                                                             SizedBox(
  431.                                                               height: 24,
  432.                                                             ),
  433.                                                           ],
  434.                                                         ),
  435.                                                       )
  436.                                                     ]),
  437.                                                   )),
  438.                                               Expanded(
  439.                                                   child: SingleChildScrollView(
  440.                                                     child: Column(
  441.                                                       children: [
  442.                                                         SizedBox(
  443.                                                           height: 22,
  444.                                                         ),
  445.                                                         Container(
  446.                                                           color: whiteTextBox,
  447.                                                           height: 48,
  448.                                                           child: TextFormField(
  449.                                                             maxLines: 1,
  450.                                                             decoration: InputDecoration(
  451.                                                                 contentPadding:
  452.                                                                 EdgeInsets.only(
  453.                                                                     top: 14.5,
  454.                                                                     bottom: 14.5,
  455.                                                                     left: 10),
  456.                                                                 border:
  457.                                                                 OutlineInputBorder(
  458.                                                                     borderRadius:
  459.                                                                     BorderRadius
  460.                                                                         .circular(
  461.                                                                         5)),
  462.                                                                 hintText:
  463.                                                                 "Nama Perusahaan",
  464.                                                                 hintStyle:
  465.                                                                 smallHintGray),
  466.                                                           ),
  467.                                                         ),
  468.                                                         SizedBox(
  469.                                                           height: 37,
  470.                                                         ),
  471.                                                         Container(
  472.                                                           color: whiteTextBox,
  473.                                                           height: 48,
  474.                                                           child: TextFormField(
  475.                                                             maxLines: 1,
  476.                                                             decoration: InputDecoration(
  477.                                                                 contentPadding:
  478.                                                                 EdgeInsets.only(
  479.                                                                     top: 14.5,
  480.                                                                     bottom: 14.5,
  481.                                                                     left: 10),
  482.                                                                 border:
  483.                                                                 OutlineInputBorder(
  484.                                                                     borderRadius:
  485.                                                                     BorderRadius
  486.                                                                         .circular(
  487.                                                                         5)),
  488.                                                                 hintText:
  489.                                                                 "Sektor Industri",
  490.                                                                 hintStyle:
  491.                                                                 smallHintGray),
  492.                                                           ),
  493.                                                         ),
  494.                                                         SizedBox(
  495.                                                           height: 37,
  496.                                                         ),
  497.                                                         Container(
  498.                                                           color: whiteTextBox,
  499.                                                           height: 48,
  500.                                                           child: TextFormField(
  501.                                                             maxLines: 1,
  502.                                                             decoration: InputDecoration(
  503.                                                                 contentPadding:
  504.                                                                 EdgeInsets.only(
  505.                                                                     top: 14.5,
  506.                                                                     bottom: 14.5,
  507.                                                                     left: 10),
  508.                                                                 border:
  509.                                                                 OutlineInputBorder(
  510.                                                                     borderRadius:
  511.                                                                     BorderRadius
  512.                                                                         .circular(
  513.                                                                         5)),
  514.                                                                 hintText: "Jabatan",
  515.                                                                 hintStyle:
  516.                                                                 smallHintGray),
  517.                                                           ),
  518.                                                         ),
  519.                                                         SizedBox(
  520.                                                           height: 37,
  521.                                                         ),
  522.                                                         Container(
  523.                                                           color: grayPrimaryTwo,
  524.                                                           height: 138,
  525.                                                           child: TextFormField(
  526.                                                             maxLines: 1,
  527.                                                             textAlign: TextAlign.left,
  528.                                                             decoration: InputDecoration(
  529.                                                                 contentPadding:
  530.                                                                 EdgeInsets.only(
  531.                                                                     top: 69,
  532.                                                                     bottom: 69,
  533.                                                                     left: 10),
  534.                                                                 border: OutlineInputBorder(
  535.                                                                     borderRadius:
  536.                                                                     BorderRadius
  537.                                                                         .all(Radius
  538.                                                                         .circular(
  539.                                                                         5))),
  540.                                                                 hintText:
  541.                                                                 "Alamat Perusahaan",
  542.                                                                 hintStyle:
  543.                                                                 smallHintGray),
  544.                                                           ),
  545.                                                         ),
  546.                                                         SizedBox(
  547.                                                           height: 69,
  548.                                                         ),
  549.                                                         Padding(
  550.                                                           padding: const EdgeInsets
  551.                                                               .symmetric(vertical: 0),
  552.                                                           child: Container(
  553.                                                             height: 52,
  554.                                                             width: double.infinity,
  555.                                                             child: RaisedButton(
  556.                                                               /*onPressed: state is! LoginLoading
  557.                                                     ? _onLoginButtonPressed
  558.                                                     : null,*/
  559.                                                               onPressed: () {},
  560.                                                               elevation: 5,
  561.                                                               shape:
  562.                                                               RoundedRectangleBorder(
  563.                                                                 borderRadius:
  564.                                                                 BorderRadius
  565.                                                                     .circular(15),
  566.                                                               ),
  567.                                                               color: grayDarkTwo,
  568.                                                               padding:
  569.                                                               EdgeInsets.all(10),
  570.                                                               child: Text(
  571.                                                                 "Selanjutnya",
  572.                                                                 style:
  573.                                                                 whitePrimaryTextStyle,
  574.                                                               ),
  575.                                                             ),
  576.                                                           ),
  577.                                                         ),
  578.                                                         SizedBox(
  579.                                                           height: 37,
  580.                                                         ),
  581.                                                         Padding(
  582.                                                           padding: const EdgeInsets
  583.                                                               .symmetric(vertical: 0),
  584.                                                           child: Container(
  585.                                                             height: 52,
  586.                                                             width: double.infinity,
  587.                                                             child: RaisedButton(
  588.                                                               onPressed: () {},
  589.                                                               elevation: 5,
  590.                                                               shape:
  591.                                                               RoundedRectangleBorder(
  592.                                                                 borderRadius:
  593.                                                                 BorderRadius
  594.                                                                     .circular(15),
  595.                                                                 side: BorderSide(
  596.                                                                     color:
  597.                                                                     purplePrimary),
  598.                                                               ),
  599.                                                               color: Colors.white,
  600.                                                               padding:
  601.                                                               EdgeInsets.all(10),
  602.                                                               child: Text(
  603.                                                                 "Batal",
  604.                                                                 style:
  605.                                                                 purplePrimaryTextStyle,
  606.                                                               ),
  607.                                                             ),
  608.                                                           ),
  609.                                                         ),
  610.                                                         SizedBox(
  611.                                                           height: 24,
  612.                                                         ),
  613.                                                       ],
  614.                                                     ),
  615.                                                   ))
  616.                                             ]),
  617.                                             backgroundColor: Colors.white,
  618.                                           ),
  619.                                         )),
  620.                                   )
  621.                                 ],
  622.                               )),
  623.                         ),
  624.                       ],
  625.                     ),
  626.                   )),
  627.             ),
  628.           );
  629.         },
  630.       ),
  631.     );
  632.   }
  633. }
  634. class EditionInformationsTab extends StatefulWidget {
  635.   @override
  636.   State<StatefulWidget> createState() => _EditionInformationsTabState();
  637. }
  638.  
  639. class _EditionInformationsTabState extends State<EditionInformationsTab> {
  640.   final _list1 = <String>['Culture', 'Test'];
  641.   final _list2 = <String>['Etablissement', 'Test 1', 'Test 2'];
  642.  
  643.   final _usernameController = TextEditingController();
  644.   final _name = TextEditingController();
  645.   final _email = TextEditingController();
  646.   final _tenant_id = TextEditingController();
  647.   final _password = TextEditingController();
  648.   final _confirm_password = TextEditingController();
  649.  
  650.   @override
  651.   Widget build(BuildContext context) {
  652.     return Form(
  653.       child: Column(
  654.         children: [
  655.           Container(
  656.             color: whiteTextBox,
  657.             height: 48,
  658.             child: TextFormField(
  659.               controller: _usernameController,
  660.               maxLines: 1,
  661.               decoration: InputDecoration(
  662.                   contentPadding:
  663.                   EdgeInsets.only(
  664.                       top: 14.5,
  665.                       bottom:
  666.                       14.5,
  667.                       left: 10),
  668.                   border: OutlineInputBorder(
  669.                       borderRadius:
  670.                       BorderRadius
  671.                           .circular(
  672.                           5),
  673.                       borderSide:
  674.                       BorderSide(
  675.                           color:
  676.                           grayPrimaryTwo)),
  677.                   hintText:
  678.                   "Nama Pengguna",
  679.                   hintStyle:
  680.                   smallHintGray),
  681.             ),
  682.           ),
  683.           SizedBox(
  684.             height: 37,
  685.           ),
  686.           Container(
  687.             color: whiteTextBox,
  688.             height: 48,
  689.             child: TextFormField(
  690.               controller: _usernameController,
  691.               maxLines: 1,
  692.               decoration: InputDecoration(
  693.                   contentPadding:
  694.                   EdgeInsets.only(
  695.                       top: 14.5,
  696.                       bottom:
  697.                       14.5,
  698.                       left: 10),
  699.                   border: OutlineInputBorder(
  700.                       borderRadius:
  701.                       BorderRadius
  702.                           .circular(
  703.                           5),
  704.                       borderSide:
  705.                       BorderSide(
  706.                           color:
  707.                           grayPrimaryTwo)),
  708.                   hintText:
  709.                   "Nama Pengguna",
  710.                   hintStyle:
  711.                   smallHintGray),
  712.             ),
  713.           ),
  714.           SizedBox(
  715.             height: 37,
  716.           ),
  717.           Container(
  718.             color: whiteTextBox,
  719.             height: 48,
  720.             child: TextFormField(
  721.               controller: _usernameController,
  722.               maxLines: 1,
  723.               decoration: InputDecoration(
  724.                   contentPadding:
  725.                   EdgeInsets.only(
  726.                       top: 14.5,
  727.                       bottom:
  728.                       14.5,
  729.                       left: 10),
  730.                   border: OutlineInputBorder(
  731.                       borderRadius:
  732.                       BorderRadius
  733.                           .circular(
  734.                           5),
  735.                       borderSide:
  736.                       BorderSide(
  737.                           color:
  738.                           grayPrimaryTwo)),
  739.                   hintText:
  740.                   "Nama Pengguna",
  741.                   hintStyle:
  742.                   smallHintGray),
  743.             ),
  744.           ),
  745.           SizedBox(
  746.             height: 37,
  747.           ),
  748.         ],
  749.       ),
  750.     );
  751.   }
  752. }
  753.  
  754.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement