diff --git a/lib/pages/receipt_page_2.dart b/lib/pages/receipt_page_2.dart index c565922..1b8b681 100644 --- a/lib/pages/receipt_page_2.dart +++ b/lib/pages/receipt_page_2.dart @@ -158,7 +158,7 @@ class ReceiptPage2State extends State { ), // "Receipt Details" title Container( - padding: EdgeInsets.fromLTRB(25,15,15.0,0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Tooltip( message: "Date and time of transaction", child: Row( @@ -221,7 +221,7 @@ class ReceiptPage2State extends State { ), // Date/Time picker Container( - padding: EdgeInsets.fromLTRB(25,15,15.0,0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Tooltip( message: "Transaction payee", child: Row( @@ -275,7 +275,7 @@ class ReceiptPage2State extends State { ), // Organisation picker Container( - padding: EdgeInsets.fromLTRB(25,15,15.0,0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Tooltip( message: "Transaction recrudescence", child: Row( @@ -331,7 +331,7 @@ class ReceiptPage2State extends State { ), // Recurring picker Container( - padding: EdgeInsets.fromLTRB(25,15,15.0,0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Row( children: [ Container( @@ -387,7 +387,7 @@ class ReceiptPage2State extends State { ), // Category picker Container( - padding: EdgeInsets.fromLTRB(25,15,15.0,0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Tooltip( message: "Essential or not", child: Row( @@ -420,7 +420,7 @@ class ReceiptPage2State extends State { ), // Essential Container( - padding: EdgeInsets.fromLTRB(25,15,15.0,0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Tooltip( message: "Transaction amount", child: Row( @@ -456,7 +456,7 @@ class ReceiptPage2State extends State { ), // Amount picker Padding( - padding: EdgeInsets.fromLTRB(20.0, 20.0, 20.0, 0.0), + padding: EdgeInsets.fromLTRB(MediaQuery.of(context).size.width * 0.05,15,MediaQuery.of(context).size.width * 0.05,0.0), child: Tooltip( message: "Submit receipt", child: Container(