Browse Source

increased padding of 'grant permission' button

ashilkn 3 năm trước cách đây
mục cha
commit
21de3fb0a3
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 1
      lib/ui/grant_permissions_widget.dart
  2. 2 1
      lib/ui/home_widget.dart

+ 1 - 1
lib/ui/grant_permissions_widget.dart

@@ -54,7 +54,7 @@ class GrantPermissionsWidget extends StatelessWidget {
               Container(
                 width: double.infinity,
                 padding: EdgeInsets.only(
-                    left: 20, right: 20, bottom: Platform.isIOS ? 24 : 60),
+                    left: 20, right: 20, bottom: Platform.isIOS ? 84 : 60),
                 child: OutlinedButton(
                   child: Text("Grant permission"),
                   onPressed: () async {

+ 2 - 1
lib/ui/home_widget.dart

@@ -252,7 +252,8 @@ class _HomeWidgetState extends State<HomeWidget> {
 
   Widget _getBody() {
     if (!Configuration.instance.hasConfiguredAccount()) {
-      return LandingPageWidget();
+      // return LandingPageWidget();
+      return GrantPermissionsWidget();
     }
     if (!LocalSyncService.instance.hasGrantedPermissions()) {
       return GrantPermissionsWidget();