Improve repo structure (#22)
* app updated * readme updated * rename base folder * update chatty's readme * move apps to packages dir * update repo overview Co-authored-by: diegoveloper <[email protected]>
This commit is contained in:
co-authored by
diegoveloper
parent
bd6bb66279
commit
030c3eb428
@@ -0,0 +1,54 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
const primaryColor = Color(0xFF3883FB);
|
||||
const backgroundLightColor = Color(0xFFFCFCFC);
|
||||
const backgroundDarkColor = Color(0xFF1F2026);
|
||||
const navigationBarLightColor = Colors.white;
|
||||
const navigationBarDarkColor = Color(0xFF30313C);
|
||||
|
||||
class Themes {
|
||||
static final themeLight = ThemeData.light().copyWith(
|
||||
backgroundColor: backgroundLightColor,
|
||||
// selected color
|
||||
accentColor: primaryColor,
|
||||
// floating action button
|
||||
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
||||
backgroundColor: primaryColor,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
// bottom bar
|
||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||
backgroundColor: navigationBarLightColor,
|
||||
selectedItemColor: primaryColor,
|
||||
unselectedItemColor: Colors.grey[200],
|
||||
),
|
||||
// switch active color
|
||||
toggleableActiveColor: primaryColor,
|
||||
canvasColor: backgroundLightColor,
|
||||
appBarTheme: AppBarTheme(
|
||||
color: Colors.black,
|
||||
));
|
||||
|
||||
static final themeDark = ThemeData.dark().copyWith(
|
||||
backgroundColor: backgroundDarkColor,
|
||||
// selected color
|
||||
accentColor: primaryColor,
|
||||
// floating action button
|
||||
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
||||
backgroundColor: primaryColor,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
// bottom bar
|
||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||
backgroundColor: navigationBarDarkColor,
|
||||
selectedItemColor: primaryColor,
|
||||
unselectedItemColor: Colors.grey[300],
|
||||
),
|
||||
textSelectionColor: Colors.white,
|
||||
// switch active color
|
||||
toggleableActiveColor: primaryColor,
|
||||
canvasColor: backgroundDarkColor,
|
||||
appBarTheme: AppBarTheme(
|
||||
color: Colors.white,
|
||||
));
|
||||
}
|
||||
Reference in New Issue
Block a user