mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
test dialog for buying
This commit is contained in:
96
lib/buy.dart
96
lib/buy.dart
@@ -315,41 +315,67 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Dialogs.materialDialog(
|
showDialog(
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
context: context,
|
||||||
customView: const TransactionDetails(),
|
builder: (BuildContext context) => Dialog(
|
||||||
customViewPosition:
|
backgroundColor:
|
||||||
CustomViewPosition.BEFORE_ACTION,
|
Theme.of(context).scaffoldBackgroundColor,
|
||||||
msgAlign: TextAlign.center,
|
shape: RoundedRectangleBorder(
|
||||||
msg:
|
borderRadius: BorderRadius.all(
|
||||||
'Please read all the information below before purchasing.\n',
|
Radius.circular(20))),
|
||||||
title: 'Transaction Details',
|
child: Padding(
|
||||||
context: context,
|
padding: const EdgeInsets.all(8.0),
|
||||||
actions: [
|
child: Column(
|
||||||
IconsOutlineButton(
|
mainAxisSize: MainAxisSize.min,
|
||||||
onPressed: () {},
|
mainAxisAlignment:
|
||||||
text: 'Cancel',
|
MainAxisAlignment.center,
|
||||||
iconData: Icons.cancel_outlined,
|
children: <Widget>[
|
||||||
color: Theme.of(context).primaryColor,
|
const Text('Transaction Details'),
|
||||||
textStyle: TextStyle(
|
const SizedBox(height: 15),
|
||||||
color: CustomMaterialColor(240, 240, 240)
|
TextButton(
|
||||||
.mdColor,
|
onPressed: () {
|
||||||
),
|
Navigator.pop(context);
|
||||||
iconColor: CustomMaterialColor(240, 240, 240)
|
},
|
||||||
.mdColor),
|
child: const Text('Close'),
|
||||||
IconsButton(
|
),
|
||||||
onPressed: () {},
|
],
|
||||||
text: 'Purchase',
|
),
|
||||||
iconData: Icons.done,
|
)));
|
||||||
color: Colors.green,
|
// Dialogs.materialDialog(
|
||||||
textStyle: TextStyle(
|
// color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
color: CustomMaterialColor(240, 240, 240)
|
// customView: const TransactionDetails(),
|
||||||
.mdColor,
|
// customViewPosition:
|
||||||
),
|
// CustomViewPosition.BEFORE_ACTION,
|
||||||
iconColor: CustomMaterialColor(240, 240, 240)
|
// msgAlign: TextAlign.center,
|
||||||
.mdColor),
|
// msg:
|
||||||
],
|
// 'Please read all the information below before purchasing.\n',
|
||||||
);
|
// title: 'Transaction Details',
|
||||||
|
// context: context,
|
||||||
|
// actions: [
|
||||||
|
// IconsOutlineButton(
|
||||||
|
// 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.green,
|
||||||
|
// textStyle: TextStyle(
|
||||||
|
// color: CustomMaterialColor(240, 240, 240)
|
||||||
|
// .mdColor,
|
||||||
|
// ),
|
||||||
|
// iconColor: CustomMaterialColor(240, 240, 240)
|
||||||
|
// .mdColor),
|
||||||
|
// ],
|
||||||
|
// );
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
Reference in New Issue
Block a user