Vishnu Mohandas 4 gadi atpakaļ
vecāks
revīzija
bc4324d1b2
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 2 0
      lib/ui/common_elements.dart
  2. 2 1
      lib/ui/home_widget.dart

+ 2 - 0
lib/ui/common_elements.dart

@@ -17,6 +17,7 @@ Widget button(
   String text, {
   String text, {
   double fontSize = 14,
   double fontSize = 14,
   VoidCallback onPressed,
   VoidCallback onPressed,
+  double lineHeight,
 }) {
 }) {
   return InkWell(
   return InkWell(
     child: OutlinedButton(
     child: OutlinedButton(
@@ -38,6 +39,7 @@ Widget button(
           fontWeight: FontWeight.bold,
           fontWeight: FontWeight.bold,
           fontSize: fontSize,
           fontSize: fontSize,
           color: onPressed == null ? Colors.grey : Colors.white,
           color: onPressed == null ? Colors.grey : Colors.white,
+          height: lineHeight,
         ),
         ),
         textAlign: TextAlign.center,
         textAlign: TextAlign.center,
       ),
       ),

+ 2 - 1
lib/ui/home_widget.dart

@@ -329,10 +329,11 @@ class _HomeWidgetState extends State<HomeWidget> {
               child: Container(
               child: Container(
                 width: double.infinity,
                 width: double.infinity,
                 height: 80,
                 height: 80,
-                padding: const EdgeInsets.fromLTRB(80, 0, 80, 0),
+                padding: const EdgeInsets.fromLTRB(60, 0, 60, 0),
                 child: button(
                 child: button(
                   "preserve memories",
                   "preserve memories",
                   fontSize: 16,
                   fontSize: 16,
+                  lineHeight: 1.5,
                   onPressed: () async {
                   onPressed: () async {
                     routeToPage(context, BackupFolderSelectionPage());
                     routeToPage(context, BackupFolderSelectionPage());
                   },
                   },