import 'package:diplomaticquarterapp/config/size_config.dart'; import 'package:diplomaticquarterapp/pages/login/login-type.dart'; import 'package:diplomaticquarterapp/pages/login/register.dart'; import 'package:diplomaticquarterapp/routes.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart'; import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart'; import 'package:diplomaticquarterapp/widgets/text/app_texts_widget.dart'; import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; class WelcomeLogin extends StatefulWidget { @override _WelcomeLogin createState() => _WelcomeLogin(); } class _WelcomeLogin extends State { bool isLoading = true; @override void initState() { isLoading = true; super.initState(); } Widget build(BuildContext context) { return AppScaffold( appBarTitle: TranslationBase.of(context).welcome, isShowDecPage: false, isShowAppBar: true, showNewAppBar: true, backgroundColor: Color(0xffF8F8F8), showNewAppBarTitle: false, body: Column( children: [ Expanded( child: ListView( padding: EdgeInsets.only(left: 21, right: 21), physics: BouncingScrollPhysics(), children: [ SizedBox(height: 12), Align( alignment: Alignment.centerLeft, child: SvgPicture.asset( "assets/images/new/hmg_icon.svg", height: 35, width: 35, ), ), SizedBox(height: 16), Text( TranslationBase.of(context).welcome, style: TextStyle(fontSize: 24, fontFamily: "Poppins", fontWeight: FontWeight.w700, color: Color(0xff2B353E), letterSpacing: -1.44, height: 23 / 24), ), Text( TranslationBase.of(context).welcomeText, style: TextStyle(fontSize: 14, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.56, height: 21 / 14), ), Text( TranslationBase.of(context).welcomeText2, style: TextStyle(fontSize: 14, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.56, height: 21 / 14), ), SizedBox( height: 14, ), ], ), ), Container( color: Colors.white, padding: EdgeInsets.only(top: 16, bottom: 16, right: 21, left: 21), child: Row( mainAxisSize: MainAxisSize.min, children: [ Expanded( child: DefaultButton( TranslationBase.of(context).no, () => { Navigator.of(context).push(FadePage(page: Register())), }, color: Color(0xffEAEAEA), textColor: Color(0xff000000), ), ), SizedBox(width: 8), Expanded( child: DefaultButton( TranslationBase.of(context).yes, () => { Navigator.of(context).push(FadePage(page: LoginType())), }, color: Color(0xffD02127), ), ), ], ), ), ], ), ); } }