소스 검색

center aligned assets + other UI changes

ashilkn 2 년 전
부모
커밋
44495c721c
3개의 변경된 파일17개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 0
      lib/ui/grant_permissions_widget.dart
  2. 1 2
      lib/ui/loading_photos_widget.dart
  3. 12 4
      lib/ui/tools/free_space_page.dart

+ 4 - 0
lib/ui/grant_permissions_widget.dart

@@ -16,6 +16,9 @@ class GrantPermissionsWidget extends StatelessWidget {
           padding: const EdgeInsets.only(top: 20, bottom: 120),
           child: Column(
             children: [
+              const SizedBox(
+                height: 24,
+              ),
               Center(
                 child: Stack(
                   alignment: Alignment.center,
@@ -43,6 +46,7 @@ class GrantPermissionsWidget extends StatelessWidget {
                   ],
                 ),
               ),
+              const SizedBox(height: 36),
               Padding(
                 padding: const EdgeInsets.fromLTRB(40, 0, 40, 0),
                 child: RichText(

+ 1 - 2
lib/ui/loading_photos_widget.dart

@@ -103,10 +103,9 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
                             color: Colors.white.withOpacity(0.25),
                             colorBlendMode: BlendMode.modulate,
                           ),
-                    const SizedBox(height: 20),
                     Column(
                       children: [
-                        const SizedBox(height: 50),
+                        const SizedBox(height: 24),
                         Lottie.asset(
                           'assets/loadingGalleryLottie.json',
                           height: 400,

+ 12 - 4
lib/ui/tools/free_space_page.dart

@@ -53,6 +53,7 @@ class _FreeSpacePageState extends State<FreeSpacePage> {
       mainAxisAlignment: MainAxisAlignment.center,
       crossAxisAlignment: CrossAxisAlignment.center,
       children: [
+        const SizedBox(height: 24),
         Stack(
           alignment: Alignment.center,
           children: [
@@ -62,13 +63,20 @@ class _FreeSpacePageState extends State<FreeSpacePage> {
                     color: Colors.white.withOpacity(0.4),
                     colorBlendMode: BlendMode.modulate,
                   )
-                : Image.asset('assets/loading_photos_background_dark.png'),
-            Image.asset(
-              "assets/gallery_locked.png",
-              height: 160,
+                : Image.asset(
+                    'assets/loading_photos_background_dark.png',
+                    color: Colors.white.withOpacity(0.25),
+                  ),
+            Padding(
+              padding: const EdgeInsets.only(top: 16),
+              child: Image.asset(
+                "assets/gallery_locked.png",
+                height: 160,
+              ),
             ),
           ],
         ),
+        const SizedBox(height: 24),
         Padding(
           padding: const EdgeInsets.only(left: 36, right: 40),
           child: Row(