This commit is contained in:
NATHANIEL ENDICK
2023-02-26 09:30:40 -05:00
parent 7d07d0bc92
commit c38f43e77a
2 changed files with 35 additions and 23 deletions

View File

@@ -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,
);
}

View File

@@ -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(),
);
}