Revert progress indicator in appbar

This commit is contained in:
Ming Ming 2022-12-03 15:47:40 +08:00
parent 82cdd8b6a1
commit 94a34f3124
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ class AppBarCircularProgressIndicator extends StatelessWidget {
child: SizedBox.square( child: SizedBox.square(
dimension: 24, dimension: 24,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 2, strokeWidth: 3,
), ),
), ),
); );

View file

@ -9,8 +9,8 @@ import 'package:nc_photos/pref.dart';
import 'package:nc_photos/theme.dart'; import 'package:nc_photos/theme.dart';
import 'package:nc_photos/url_launcher_util.dart'; import 'package:nc_photos/url_launcher_util.dart';
import 'package:nc_photos/widget/account_picker_dialog.dart'; import 'package:nc_photos/widget/account_picker_dialog.dart';
import 'package:nc_photos/widget/app_bar_circular_progress_indicator.dart';
import 'package:nc_photos/widget/app_bar_title_container.dart'; import 'package:nc_photos/widget/app_bar_title_container.dart';
import 'package:nc_photos/widget/cloud_progress_indicator.dart';
import 'package:nc_photos/widget/settings.dart'; import 'package:nc_photos/widget/settings.dart';
import 'package:nc_photos/widget/translucent_sliver_app_bar.dart'; import 'package:nc_photos/widget/translucent_sliver_app_bar.dart';
@ -42,7 +42,7 @@ class HomeSliverAppBar extends StatelessWidget {
title: Text(accountLabel ?? account.address), title: Text(accountLabel ?? account.address),
subtitle: accountLabel == null ? Text(account.username2) : null, subtitle: accountLabel == null ? Text(account.username2) : null,
icon: isShowProgressIcon icon: isShowProgressIcon
? const CloudProgressIndicator(size: 36) ? const AppBarCircularProgressIndicator()
: (account.scheme == "http" : (account.scheme == "http"
? Icon( ? Icon(
Icons.no_encryption_outlined, Icons.no_encryption_outlined,