mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
bug + ui fixes
This commit is contained in:
97
lib/buy.dart
97
lib/buy.dart
@@ -379,63 +379,6 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
showSheet(context, index);
|
showSheet(context, index);
|
||||||
// showDialog(
|
|
||||||
// context: context,
|
|
||||||
// builder: (BuildContext context) => Dialog(
|
|
||||||
// backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
|
||||||
// shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(20))),
|
|
||||||
// child: Padding(
|
|
||||||
// padding: const EdgeInsets.all(8.0),
|
|
||||||
// child: Column(
|
|
||||||
// mainAxisSize: MainAxisSize.min,
|
|
||||||
// mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
// children: <Widget>[
|
|
||||||
// const Text('Transaction Details'),
|
|
||||||
// const SizedBox(height: 15),
|
|
||||||
// TextButton(
|
|
||||||
// onPressed: () {
|
|
||||||
// Navigator.pop(context);
|
|
||||||
// },
|
|
||||||
// child: const Text('Close'),
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// )));
|
|
||||||
// // Dialogs.materialDialog(
|
|
||||||
// // color: Theme.of(context).scaffoldBackgroundColor,
|
|
||||||
// // customView: const TransactionDetails(),
|
|
||||||
// // customViewPosition:
|
|
||||||
// // CustomViewPosition.BEFORE_ACTION,
|
|
||||||
// // msgAlign: TextAlign.center,
|
|
||||||
// // 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(
|
||||||
@@ -466,7 +409,7 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 7,
|
flex: 6,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding:
|
padding:
|
||||||
EdgeInsets.only(left: 20),
|
EdgeInsets.only(left: 20),
|
||||||
@@ -485,19 +428,49 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
overflow:
|
overflow:
|
||||||
TextOverflow.ellipsis,
|
TextOverflow.ellipsis,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 20),
|
fontSize: 24),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: const [
|
children: [
|
||||||
Icon(Icons.star,
|
Icon(Icons.star,
|
||||||
|
color:
|
||||||
|
CustomMaterialColor(
|
||||||
|
240,
|
||||||
|
240,
|
||||||
|
240)
|
||||||
|
.mdColor,
|
||||||
size: 16),
|
size: 16),
|
||||||
Icon(Icons.star,
|
Icon(Icons.star,
|
||||||
|
color:
|
||||||
|
CustomMaterialColor(
|
||||||
|
240,
|
||||||
|
240,
|
||||||
|
240)
|
||||||
|
.mdColor,
|
||||||
size: 16),
|
size: 16),
|
||||||
Icon(Icons.star,
|
Icon(Icons.star,
|
||||||
|
color:
|
||||||
|
CustomMaterialColor(
|
||||||
|
240,
|
||||||
|
240,
|
||||||
|
240)
|
||||||
|
.mdColor,
|
||||||
size: 16),
|
size: 16),
|
||||||
Icon(Icons.star_half,
|
Icon(Icons.star_half,
|
||||||
|
color:
|
||||||
|
CustomMaterialColor(
|
||||||
|
240,
|
||||||
|
240,
|
||||||
|
240)
|
||||||
|
.mdColor,
|
||||||
size: 16),
|
size: 16),
|
||||||
Icon(Icons.star_border,
|
Icon(Icons.star_border,
|
||||||
|
color:
|
||||||
|
CustomMaterialColor(
|
||||||
|
240,
|
||||||
|
240,
|
||||||
|
240)
|
||||||
|
.mdColor,
|
||||||
size: 16),
|
size: 16),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -523,14 +496,14 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 3,
|
flex: 4,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding:
|
padding:
|
||||||
EdgeInsets.only(right: 15),
|
EdgeInsets.only(right: 15),
|
||||||
child: Text(
|
child: Text(
|
||||||
'\$${price}',
|
'\$${price}',
|
||||||
textAlign: TextAlign.end,
|
textAlign: TextAlign.end,
|
||||||
style: TextStyle(fontSize: 44),
|
style: TextStyle(fontSize: 30),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user