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