Skip to content

Commit

Permalink
Payment Landscape Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Oct 16, 2018
1 parent 1a65453 commit a313672
Showing 1 changed file with 52 additions and 46 deletions.
98 changes: 52 additions & 46 deletions lib/ui/page/payment/payment_success_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,54 +71,60 @@ class PaymentSuccessPageState extends State<PaymentSuccessPage> {
));
}

successTicket() => Container(
width: double.infinity,
padding: const EdgeInsets.all(16.0),
child: Material(
elevation: 2.0,
borderRadius: BorderRadius.circular(4.0),
child: Padding(
successTicket() => Expanded(
child: SingleChildScrollView(
child: Container(
width: double.infinity,
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
ProfileTile(
title: "Thank You!",
textColor: Colors.purple,
subtitle: "Your transaction was successful",
),
ListTile(
title: Text("Date"),
subtitle: Text("26 June 2018"),
trailing: Text("11:00 AM"),
),
ListTile(
title: Text("Pawan Kumar"),
subtitle: Text("[email protected]"),
trailing: CircleAvatar(
radius: 20.0,
backgroundImage: NetworkImage(
"https://avatars0.githubusercontent.com/u/12619420?s=460&v=4"),
),
),
ListTile(
title: Text("Amount"),
subtitle: Text("\$299"),
trailing: Text("Completed"),
),
Card(
elevation: 0.0,
color: Colors.grey.shade300,
child: ListTile(
leading: Icon(
FontAwesomeIcons.ccAmex,
color: Colors.blue,
child: Material(
clipBehavior: Clip.antiAlias,
elevation: 2.0,
borderRadius: BorderRadius.circular(4.0),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
ProfileTile(
title: "Thank You!",
textColor: Colors.purple,
subtitle: "Your transaction was successful",
),
title: Text("Credit/Debit Card"),
subtitle: Text("Amex Card ending ***6"),
),
)
],
ListTile(
title: Text("Date"),
subtitle: Text("26 June 2018"),
trailing: Text("11:00 AM"),
),
ListTile(
title: Text("Pawan Kumar"),
subtitle: Text("[email protected]"),
trailing: CircleAvatar(
radius: 20.0,
backgroundImage: NetworkImage(
"https://avatars0.githubusercontent.com/u/12619420?s=460&v=4"),
),
),
ListTile(
title: Text("Amount"),
subtitle: Text("\$299"),
trailing: Text("Completed"),
),
Card(
clipBehavior: Clip.antiAlias,
elevation: 0.0,
color: Colors.grey.shade300,
child: ListTile(
leading: Icon(
FontAwesomeIcons.ccAmex,
color: Colors.blue,
),
title: Text("Credit/Debit Card"),
subtitle: Text("Amex Card ending ***6"),
),
)
],
),
),
),
),
),
Expand Down

0 comments on commit a313672

Please sign in to comment.