Skip to content

Instantly share code, notes, and snippets.

@Oshinowo
Created Oct 23, 2021
Embed
What would you like to do?
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