This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GENERATED CODE - DO NOT MODIFY BY HAND | |
part of 'login_response.dart'; | |
// ************************************************************************** | |
// JsonSerializableGenerator | |
// ************************************************************************** | |
LoginResponse _$LoginResponseFromJson(Map<String, dynamic> json) { | |
return LoginResponse( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: healthoui | |
description: A new Flutter project. | |
version: 1.0.0+1 | |
environment: | |
sdk: ">=2.1.0 <3.0.0" | |
dependencies: | |
flutter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _SplashViewState extends State<SplashView> { | |
@override | |
void initState() { | |
super.initState(); | |
_navigateToHomePage(); | |
} | |
@override | |
Widget build(BuildContext context) { | |
_screenUtilInit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Material App', | |
initialRoute: "/", | |
theme: ThemeData(fontFamily: "Poppins"), | |
routes: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _OnBoardingViewState extends State<OnBoardingView> { | |
PageController _pageController; | |
double _currentPageIndex = 0; | |
@override | |
void initState() { | |
super.initState(); | |
_pageController = new PageController(); | |
} | |
_navigateLoginPage() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _OnBoardingViewState extends State<OnBoardingView> { | |
PageController _pageController; | |
double _currentPageIndex = 0; | |
@override | |
void initState() { | |
super.initState(); | |
_pageController = new PageController(); | |
} | |
_navigateLoginPage() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool _isVerifyComplete = false; | |
@override | |
void initState() { | |
super.initState(); | |
Future.delayed(Duration(milliseconds: UIHelper.Space500.toInt())).then((val) { | |
setState(() { | |
_isVerifyComplete = true; | |
}); | |
}).whenComplete(() { | |
// When complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool _isVerifyComplete = false; | |
FocusNode _firstFocus; | |
FocusNode _secondFocus; | |
FocusNode _thirdFocus; | |
FocusNode _fourthFocus; | |
@override | |
void initState() { | |
super.initState(); | |
_firstFocus = new FocusNode(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
ScreenUtil().init(context); | |
return Scaffold( | |
body: Padding( | |
padding: EdgeInsets.symmetric(horizontal: UIHelper.Space20), | |
child: _phoneViewColumn), | |
); | |
} |