mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Revert progress indicator in appbar
This commit is contained in:
parent
82cdd8b6a1
commit
94a34f3124
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue