build method

  1. @override
dynamic build(
  1. dynamic context
)

Builds the main UI of the app.

It sets:

  • The app title
  • The theme (defined in AppTheme.lightTheme())
  • Hides the debug banner
  • Sets the initial screen (AppNavigation)

Implementation

@override
Widget build(BuildContext context) {
  return MaterialApp(
    title: 'BicoRush',
    theme: AppTheme.lightTheme(),
    debugShowCheckedModeBanner: false,
    home: AuthWrapper(
      firestore: firestore,
      firebaseAuth: firebaseAuth,
      notificationService: notificationService,
    ),
  );
}