-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
310 additions
and
134 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import 'package:bamboo/foundation/breakpoint.dart'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:theme_provider/theme_provider.dart'; | ||
|
||
import 'core/theme/app_theme.dart'; | ||
import 'pages/home/home.dart'; | ||
|
||
class MyApp extends StatelessWidget { | ||
const MyApp({super.key}); | ||
|
||
// This widget is the root of your application. | ||
@override | ||
Widget build(BuildContext context) { | ||
ApplicationTheme appTheme = ApplicationTheme(context); | ||
return BambooBreakPoint( | ||
mobile: 576, | ||
tablet: 768, | ||
desktop: 1024, | ||
child: ThemeProvider( | ||
themes: [ | ||
AppTheme( | ||
id: 'dark_theme', | ||
description: 'theme de couleur orange', | ||
data: appTheme.darkTheme, | ||
), | ||
AppTheme( | ||
id: 'orange_theme', | ||
description: 'theme de couleur orange', | ||
data: appTheme.orangeTheme, | ||
), | ||
AppTheme( | ||
id: 'blue_theme', | ||
description: 'theme de couleur orange', | ||
data: appTheme.blueTheme, | ||
), | ||
AppTheme( | ||
id: 'green_theme', | ||
description: 'theme de couleur orange', | ||
data: appTheme.greenTheme, | ||
), | ||
AppTheme( | ||
id: 'brown_theme', | ||
description: 'theme de couleur orange', | ||
data: appTheme.brownTheme, | ||
), | ||
AppTheme( | ||
id: 'purple_theme', | ||
description: 'theme de couleur orange', | ||
data: appTheme.purlpleTheme, | ||
), | ||
], | ||
child: ThemeConsumer( | ||
child: Builder( | ||
builder: (themeContext) { | ||
return MaterialApp( | ||
title: 'DOMINICK', | ||
debugShowCheckedModeBanner: false, | ||
theme: ThemeProvider.themeOf(themeContext).data, | ||
home: const HomePage(), | ||
); | ||
}, | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,12 @@ | ||
import 'package:bamboo/foundation/breakpoint.dart'; | ||
import 'package:device_preview/device_preview.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:meta_seo/meta_seo.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
import 'core/theme/app_theme.dart'; | ||
import 'pages/home/home.dart'; | ||
import 'app.dart'; | ||
|
||
void main() { | ||
if (kIsWeb) { | ||
MetaSEO().config(); | ||
} | ||
runApp( | ||
DevicePreview( | ||
enabled: false, | ||
builder: (context) => const MyApp(), // Wrap your app | ||
), | ||
); | ||
} | ||
|
||
class MyApp extends StatelessWidget { | ||
const MyApp({super.key}); | ||
|
||
// This widget is the root of your application. | ||
@override | ||
Widget build(BuildContext context) { | ||
AppTheme appTheme = AppTheme(context); | ||
return BambooBreakPoint( | ||
mobile: 576, | ||
tablet: 768, | ||
desktop: 1024, | ||
child: MaterialApp( | ||
title: 'DOMINICK', | ||
debugShowCheckedModeBanner: false, | ||
theme: appTheme.greenTheme, | ||
home: const HomePage(), | ||
), | ||
); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.