Created
October 23, 2021 00:23
-
-
Save Oshinowo/997056a485765641269d8a68d19515b7 to your computer and use it in GitHub Desktop.
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_banking_app/config/palette.dart'; | |
import 'package:flutter_banking_app/screens/home/home_screen.dart'; | |
import 'package:flutter_banking_app/screens/onboarding/onboarding_screen.dart'; | |
import 'package:flutter_screenutil/flutter_screenutil.dart'; | |
import 'package:google_fonts/google_fonts.dart'; | |
void main(){ | |
runApp( | |
const FlutterBank(), | |
); | |
} | |
class FlutterBank extends StatelessWidget { | |
const FlutterBank({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return ScreenUtilInit( | |
designSize: const Size(414.0, 896.0), | |
builder: ()=> MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: 'Flutter Banking App', | |
theme: ThemeData( | |
primarySwatch: Palette.kCustomColour, | |
visualDensity: VisualDensity.adaptivePlatformDensity, | |
textTheme: | |
GoogleFonts.manropeTextTheme(Theme.of(context).textTheme).copyWith( | |
bodyText2: TextStyle( | |
fontSize: 14.0.sp, | |
), | |
), | |
), | |
initialRoute: HomeScreen.id, | |
routes: { | |
HomeScreen.id: (context)=> const HomeScreen(), | |
OnboardingScreen.id: (context)=> const OnboardingScreen(), | |
}, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment