refactor: Simplify themes and remove dead code
This commit is contained in:
parent
1663932b22
commit
214f0f4805
5 changed files with 23 additions and 85 deletions
|
|
@ -99,8 +99,14 @@ class FluffyChatAppState extends State<FluffyChatApp> {
|
|||
Widget build(BuildContext context) {
|
||||
return DynamicColorBuilder(
|
||||
builder: (lightColorScheme, darkColorScheme) => AdaptiveTheme(
|
||||
light: FluffyThemes.light(lightColorScheme),
|
||||
dark: FluffyThemes.dark(darkColorScheme),
|
||||
light: FluffyThemes.buildTheme(
|
||||
Brightness.light,
|
||||
lightColorScheme,
|
||||
),
|
||||
dark: FluffyThemes.buildTheme(
|
||||
Brightness.dark,
|
||||
lightColorScheme,
|
||||
),
|
||||
initial: AdaptiveThemeMode.system,
|
||||
builder: (theme, darkTheme) => LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue