mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
theming stuff
This commit is contained in:
@@ -9,8 +9,7 @@ import 'auth_gate.dart';
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
||||
Stripe.publishableKey =
|
||||
"pk_test_51MfY7PFVdcWv896FKvDhgKabYeDq4AnoFcWxCAg4hquj6TBAsN0kznXPVyKA7M1pMq5PsieGQwsx6QY5ld5ZQzJ500rVCMPPXp";
|
||||
Stripe.publishableKey = "pk_test_51MfY7PFVdcWv896FKvDhgKabYeDq4AnoFcWxCAg4hquj6TBAsN0kznXPVyKA7M1pMq5PsieGQwsx6QY5ld5ZQzJ500rVCMPPXp";
|
||||
|
||||
runApp(const MyApp());
|
||||
}
|
||||
@@ -21,6 +20,39 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
fillColor: Color.fromARGB(255, 40, 40, 40),
|
||||
filled: true,
|
||||
outlineBorder: BorderSide(
|
||||
color: Colors.white,
|
||||
),
|
||||
labelStyle: TextStyle(
|
||||
color: Color.fromARGB(255, 205, 0, 48),
|
||||
),
|
||||
focusColor: Colors.white,
|
||||
hintStyle: TextStyle(
|
||||
color: Color.fromARGB(255, 205, 0, 48),
|
||||
),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
),
|
||||
textSelectionTheme: TextSelectionThemeData(),
|
||||
fixTextFieldOutlineLabel: true,
|
||||
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
padding: MaterialStateProperty.all<EdgeInsets>(
|
||||
const EdgeInsets.all(24),
|
||||
),
|
||||
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
||||
RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
),
|
||||
backgroundColor: MaterialStateProperty.all<Color>(Color.fromARGB(255, 205, 0, 48)),
|
||||
foregroundColor: MaterialStateProperty.all<Color>(Colors.white),
|
||||
),
|
||||
),
|
||||
primarySwatch: CustomMaterialColor(205, 0, 48).mdColor,
|
||||
scaffoldBackgroundColor: Colors.black87,
|
||||
fontFamily: GoogleFonts.figtree().fontFamily,
|
||||
@@ -28,13 +60,9 @@ class MyApp extends StatelessWidget {
|
||||
bodyColor: CustomMaterialColor(240, 240, 240).mdColor,
|
||||
displayColor: CustomMaterialColor(240, 240, 240).mdColor,
|
||||
),
|
||||
textButtonTheme: TextButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
textStyle: MaterialStatePropertyAll(TextStyle(
|
||||
color: CustomMaterialColor(240, 240, 240).mdColor)))),
|
||||
textButtonTheme: TextButtonThemeData(style: ButtonStyle(textStyle: MaterialStatePropertyAll(TextStyle(color: CustomMaterialColor(240, 240, 240).mdColor)))),
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
fillColor: MaterialStatePropertyAll(
|
||||
CustomMaterialColor(240, 240, 240).mdColor),
|
||||
fillColor: MaterialStatePropertyAll(CustomMaterialColor(240, 240, 240).mdColor),
|
||||
checkColor: MaterialStatePropertyAll(Colors.black),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user