From 8c57368851590a469cd079ac60b593599a7b2adf Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 19 Aug 2020 13:47:43 +0200 Subject: [PATCH] PurchaseScreen: Make it a bit prettier --- lib/screens/purchase_screen.dart | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/screens/purchase_screen.dart b/lib/screens/purchase_screen.dart index d3a98d8b..d1f886af 100644 --- a/lib/screens/purchase_screen.dart +++ b/lib/screens/purchase_screen.dart @@ -23,15 +23,31 @@ class PurchaseScreen extends StatelessWidget { } Widget buildBody(BuildContext context) { + var theme = Theme.of(context); + var textTheme = theme.textTheme; + Widget w = Column( children: [ Text( tr('purchase_screen.desc'), style: Theme.of(context).textTheme.bodyText2, ), - const SizedBox(height: 16.0), - const SizedBox(height: 64.0), - PurchaseWidget(), + const SizedBox(height: 32.0), + Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(15.0), + ), + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + children: [ + Text("Monthly Subscription", style: textTheme.headline5), + const SizedBox(height: 32.0), + PurchaseWidget(), + ], + ), + ), + ), const SizedBox(height: 32.0), Row( children: [