mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 10:58:47 -04:00
theming
This commit is contained in:
39
lib/buy.dart
39
lib/buy.dart
@@ -316,29 +316,38 @@ class _BuyScreenState extends State<BuyScreen> {
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
Dialogs.materialDialog(
|
||||
color: CustomMaterialColor(240, 240, 240).mdColor,
|
||||
color: Theme.of(context).scaffoldBackgroundColor,
|
||||
customView: const TransactionDetails(),
|
||||
customViewPosition:
|
||||
CustomViewPosition.BEFORE_ACTION,
|
||||
msgAlign: TextAlign.center,
|
||||
msg:
|
||||
'Please read all the information below before purchasing.',
|
||||
'Please read all the information below before purchasing.\n',
|
||||
title: 'Transaction Details',
|
||||
context: context,
|
||||
actions: [
|
||||
IconsOutlineButton(
|
||||
onPressed: () {},
|
||||
text: 'Cancel',
|
||||
iconData: Icons.cancel_outlined,
|
||||
textStyle: const TextStyle(color: Colors.grey),
|
||||
iconColor: Colors.grey,
|
||||
),
|
||||
onPressed: () {},
|
||||
text: 'Cancel',
|
||||
iconData: Icons.cancel_outlined,
|
||||
color: Theme.of(context).primaryColor,
|
||||
textStyle: TextStyle(
|
||||
color: CustomMaterialColor(240, 240, 240)
|
||||
.mdColor,
|
||||
),
|
||||
iconColor: CustomMaterialColor(240, 240, 240)
|
||||
.mdColor),
|
||||
IconsButton(
|
||||
onPressed: () {},
|
||||
text: 'Purchase',
|
||||
iconData: Icons.done,
|
||||
color: Colors.blue,
|
||||
iconColor: Colors.white,
|
||||
),
|
||||
onPressed: () {},
|
||||
text: 'Purchase',
|
||||
iconData: Icons.done,
|
||||
color: Colors.green,
|
||||
textStyle: TextStyle(
|
||||
color: CustomMaterialColor(240, 240, 240)
|
||||
.mdColor,
|
||||
),
|
||||
iconColor: CustomMaterialColor(240, 240, 240)
|
||||
.mdColor),
|
||||
],
|
||||
);
|
||||
},
|
||||
@@ -453,7 +462,7 @@ class _TransactionDetailsState extends State<TransactionDetails> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
height: 80,
|
||||
height: 200,
|
||||
color: Colors.blue,
|
||||
);
|
||||
}
|
||||
|
@@ -18,14 +18,17 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(
|
||||
primarySwatch: CustomMaterialColor(205, 0, 48).mdColor,
|
||||
scaffoldBackgroundColor: Colors.black87,
|
||||
fontFamily: GoogleFonts.figtree().fontFamily,
|
||||
textTheme: Theme.of(context).textTheme.apply(
|
||||
bodyColor: CustomMaterialColor(240, 240, 240).mdColor,
|
||||
displayColor: CustomMaterialColor(240, 240, 240).mdColor,
|
||||
),
|
||||
),
|
||||
primarySwatch: CustomMaterialColor(205, 0, 48).mdColor,
|
||||
scaffoldBackgroundColor: Colors.black87,
|
||||
fontFamily: GoogleFonts.figtree().fontFamily,
|
||||
textTheme: Theme.of(context).textTheme.apply(
|
||||
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))))),
|
||||
home: const AuthGate(),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user