feat : New listing + MainView
This commit is contained in:
122
lib/main.dart
122
lib/main.dart
@@ -5,6 +5,7 @@ import 'package:bahla_front/app/app.locator.dart';
|
||||
import 'package:bahla_front/app/app.router.dart';
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
@@ -27,79 +28,56 @@ class MainApp extends StatelessWidget {
|
||||
StackedService.routeObserver,
|
||||
],
|
||||
theme: ThemeData(
|
||||
useMaterial3: true,
|
||||
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.blueAccent,
|
||||
brightness: Brightness.dark,
|
||||
primary: const Color.fromARGB(255, 64, 175, 255),
|
||||
secondary: const Color.fromARGB(255, 255, 139, 6),
|
||||
background: const Color.fromARGB(255, 15, 14, 23),
|
||||
),
|
||||
|
||||
textTheme: TextTheme(
|
||||
displayLarge: GoogleFonts.firaSans(
|
||||
fontSize: 96,
|
||||
fontWeight: FontWeight.normal
|
||||
useMaterial3: true,
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.blueAccent,
|
||||
brightness: Brightness.dark,
|
||||
primary: const Color.fromARGB(255, 64, 175, 255),
|
||||
secondary: const Color.fromARGB(255, 255, 139, 6),
|
||||
background: const Color.fromARGB(255, 15, 14, 23),
|
||||
),
|
||||
displayMedium: GoogleFonts.firaSans(
|
||||
fontSize: 60,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
displaySmall: GoogleFonts.firaSans(
|
||||
fontSize: 48,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
headlineLarge: GoogleFonts.firaSans(
|
||||
fontSize: 40,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
headlineMedium: GoogleFonts.firaSans(
|
||||
fontSize: 34,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
headlineSmall: GoogleFonts.firaSans(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
titleLarge: GoogleFonts.firaSans(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
titleMedium: GoogleFonts.firaSans(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
titleSmall: GoogleFonts.firaSans(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
bodyLarge: GoogleFonts.firaSans(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
bodyMedium: GoogleFonts.firaSans(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
bodySmall: GoogleFonts.firaSans(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
labelLarge: GoogleFonts.firaSans(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
labelMedium: GoogleFonts.firaSans(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
labelSmall: GoogleFonts.firaSans(
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
)
|
||||
),
|
||||
textTheme: TextTheme(
|
||||
displayLarge: GoogleFonts.firaSans(
|
||||
fontSize: 96, fontWeight: FontWeight.normal),
|
||||
displayMedium: GoogleFonts.firaSans(
|
||||
fontSize: 60, fontWeight: FontWeight.normal),
|
||||
displaySmall: GoogleFonts.firaSans(
|
||||
fontSize: 48, fontWeight: FontWeight.normal),
|
||||
headlineLarge: GoogleFonts.firaSans(
|
||||
fontSize: 40, fontWeight: FontWeight.normal),
|
||||
headlineMedium: GoogleFonts.firaSans(
|
||||
fontSize: 34, fontWeight: FontWeight.normal),
|
||||
headlineSmall: GoogleFonts.firaSans(
|
||||
fontSize: 24, fontWeight: FontWeight.normal),
|
||||
titleLarge: GoogleFonts.firaSans(
|
||||
fontSize: 20, fontWeight: FontWeight.normal),
|
||||
titleMedium: GoogleFonts.firaSans(
|
||||
fontSize: 16, fontWeight: FontWeight.normal),
|
||||
titleSmall: GoogleFonts.firaSans(
|
||||
fontSize: 14, fontWeight: FontWeight.normal),
|
||||
bodyLarge: GoogleFonts.firaSans(
|
||||
fontSize: 20, fontWeight: FontWeight.normal),
|
||||
bodyMedium: GoogleFonts.firaSans(
|
||||
fontSize: 16, fontWeight: FontWeight.normal),
|
||||
bodySmall: GoogleFonts.firaSans(
|
||||
fontSize: 14, fontWeight: FontWeight.normal),
|
||||
labelLarge: GoogleFonts.firaSans(
|
||||
fontSize: 14, fontWeight: FontWeight.normal),
|
||||
labelMedium: GoogleFonts.firaSans(
|
||||
fontSize: 12, fontWeight: FontWeight.normal),
|
||||
labelSmall: GoogleFonts.firaSans(
|
||||
fontSize: 10, fontWeight: FontWeight.normal),
|
||||
)),
|
||||
localizationsDelegates: const [
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: const [
|
||||
Locale('en'),
|
||||
Locale('fr'),
|
||||
Locale('ch'),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user