Browse Source

minor changes to 'start backup' screen

ashilkn 3 years ago
parent
commit
0bd781100e

+ 9 - 3
lib/ui/backup_folder_selection_page.dart

@@ -74,7 +74,7 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
           ),
           SafeArea(
             child: Container(
-              padding: EdgeInsets.fromLTRB(24, 12, 24, 8),
+              padding: EdgeInsets.fromLTRB(24, 32, 24, 8),
               child: Text(
                 'Select folders for backup',
                 textAlign: TextAlign.left,
@@ -137,6 +137,13 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
             tag: "select_folders",
             child: Container(
               width: double.infinity,
+              decoration: BoxDecoration(boxShadow: [
+                BoxShadow(
+                    color: Theme.of(context).backgroundColor,
+                    blurRadius: 24,
+                    offset: Offset(0, -8),
+                    spreadRadius: 4)
+              ]),
               padding: EdgeInsets.only(
                   left: 20, right: 20, bottom: Platform.isIOS ? 60 : 32),
               child: OutlinedButton(
@@ -149,7 +156,6 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
                         Bus.instance.fire(BackupFoldersUpdatedEvent());
                         Navigator.of(context).pop();
                       },
-                // padding: EdgeInsets.fromLTRB(12, 20, 12, 20),
               ),
             ),
           ),
@@ -168,7 +174,7 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
       padding: EdgeInsets.symmetric(horizontal: 20),
       child: Scrollbar(
         controller: scrollController,
-        isAlwaysShown: true,
+        thumbVisibility: true,
         child: Padding(
           padding: const EdgeInsets.only(right: 4),
           child: ImplicitlyAnimatedReorderableList<File>(

+ 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 ? 60 : 36),
+                    left: 20, right: 20, bottom: Platform.isIOS ? 24 : 60),
                 child: OutlinedButton(
                   child: Text("Grant permission"),
                   onPressed: () async {

+ 2 - 2
lib/ui/home_widget.dart

@@ -438,7 +438,7 @@ class _HomeWidgetState extends State<HomeWidget> {
                 padding: const EdgeInsets.fromLTRB(20, 0, 20, 0),
                 child: GradientButton(
                   child: Text(
-                    'Start Backup',
+                    'Start backup',
                     style: gradientButtonTextTheme(),
                   ),
                   linearGradientColors: const [
@@ -454,7 +454,7 @@ class _HomeWidgetState extends State<HomeWidget> {
                         context,
                         BackupFolderSelectionPage(
                           shouldSelectAll: true,
-                          buttonText: "Start Backup",
+                          buttonText: "Start backup",
                         ),
                       );
                     }

+ 1 - 1
lib/ui/loading_photos_widget.dart

@@ -37,7 +37,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
               context,
               BackupFolderSelectionPage(
                 shouldSelectAll: true,
-                buttonText: "Start Backup",
+                buttonText: "Start backup",
               ));
         }
       }

+ 0 - 2
lib/ui/payment/skip_subscription_widget.dart

@@ -4,7 +4,6 @@ import 'package:photos/events/subscription_purchased_event.dart';
 import 'package:photos/models/billing_plan.dart';
 import 'package:photos/models/subscription.dart';
 import 'package:photos/services/billing_service.dart';
-import 'package:photos/utils/toast_util.dart';
 
 class SkipSubscriptionWidget extends StatelessWidget {
   const SkipSubscriptionWidget({
@@ -30,7 +29,6 @@ class SkipSubscriptionWidget extends StatelessWidget {
             },
           ),
         ),
-        // fontSize: 16,
         onPressed: () async {
           Bus.instance.fire(SubscriptionPurchasedEvent());
           Navigator.of(context).popUntil((route) => route.isFirst);