Skip to content

Instantly share code, notes, and snippets.

View VB10's full-sized avatar
🏠
Working from home

Veli Bacik VB10

🏠
Working from home
View GitHub Profile
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'login_response.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
LoginResponse _$LoginResponseFromJson(Map<String, dynamic> json) {
return LoginResponse(
@VB10
VB10 / pubspec.yaml
Created July 9, 2019 20:09
Healtho pubspec
name: healthoui
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
@VB10
VB10 / splash_view.dart
Created July 9, 2019 20:17
Splash View
class _SplashViewState extends State<SplashView> {
@override
void initState() {
super.initState();
_navigateToHomePage();
}
@override
Widget build(BuildContext context) {
_screenUtilInit();
@VB10
VB10 / main.dart
Last active July 9, 2019 20:22
Healtho Main
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Material App',
initialRoute: "/",
theme: ThemeData(fontFamily: "Poppins"),
routes: {
@VB10
VB10 / onboarding_view.dart
Last active July 9, 2019 20:36
Onboarding View
class _OnBoardingViewState extends State<OnBoardingView> {
PageController _pageController;
double _currentPageIndex = 0;
@override
void initState() {
super.initState();
_pageController = new PageController();
}
_navigateLoginPage() {
@VB10
VB10 / onboard_widget.dart
Last active July 9, 2019 20:53
Healtho Onboard Widget
class _OnBoardingViewState extends State<OnBoardingView> {
PageController _pageController;
double _currentPageIndex = 0;
@override
void initState() {
super.initState();
_pageController = new PageController();
}
_navigateLoginPage() {
@VB10
VB10 / rounded_button_widget.dart
Created July 9, 2019 20:55
Healtho Rounded Widget
class RoundedButtonWidget extends StatelessWidget {
const RoundedButtonWidget(
{Key key, @required this.child, @required this.onPress, this.color})
: super(key: key);
final Widget child;
final VoidCallback onPress;
final Color color;
@override
Widget build(BuildContext context) {
@VB10
VB10 / verify_view.dart
Created July 24, 2019 18:58
Heltho UI Verify View dart
bool _isVerifyComplete = false;
@override
void initState() {
super.initState();
Future.delayed(Duration(milliseconds: UIHelper.Space500.toInt())).then((val) {
setState(() {
_isVerifyComplete = true;
});
}).whenComplete(() {
// When complete
@VB10
VB10 / verify_phone_view.dart
Last active July 24, 2019 19:26
Heltho UI Verify Phone View dart
bool _isVerifyComplete = false;
FocusNode _firstFocus;
FocusNode _secondFocus;
FocusNode _thirdFocus;
FocusNode _fourthFocus;
@override
void initState() {
super.initState();
_firstFocus = new FocusNode();
@VB10
VB10 / register_view.dart
Created July 24, 2019 19:47
Heltho UI Register View dart
@override
Widget build(BuildContext context) {
ScreenUtil().init(context);
return Scaffold(
body: Padding(
padding: EdgeInsets.symmetric(horizontal: UIHelper.Space20),
child: _phoneViewColumn),
);
}