Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Last active October 4, 2020 08:31
Show Gist options
  • Save TechieBlossom/c52952363c674c19c1dd9f9de73e332a to your computer and use it in GitHub Desktop.
Save TechieBlossom/c52952363c674c19c1dd9f9de73e332a to your computer and use it in GitHub Desktop.
class MovieApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
//1
ScreenUtil.init();
//2
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Movie App',
theme: ThemeData(
//3
primaryColor: AppColor.vulcan,
scaffoldBackgroundColor: AppColor.vulcan,
visualDensity: VisualDensity.adaptivePlatformDensity,
textTheme: ThemeText.getTextTheme(),
appBarTheme: const AppBarTheme(elevation: 0),
),
//4
home: HomeScreen(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment