Changed primary color for old Android versions

This commit is contained in:
Juan Gilsanz Polo 2022-09-28 02:51:55 +02:00
parent fcac9ccbe4
commit a1f2de6812
3 changed files with 105 additions and 43 deletions

View file

@ -25,6 +25,7 @@ class HomeAppBar extends StatelessWidget with PreferredSizeWidget {
}
return AppBar(
toolbarHeight: 70,
title: Padding(
padding: const EdgeInsets.only(bottom: 5),
child: Row(
@ -89,5 +90,5 @@ class HomeAppBar extends StatelessWidget with PreferredSizeWidget {
}
@override
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
Size get preferredSize => const Size.fromHeight(70);
}

View file

@ -116,6 +116,7 @@ class Home extends StatelessWidget {
}
return RefreshIndicator(
color: Theme.of(context).primaryColor,
onRefresh: () async {
final result = await getServerStatus(serversProvider.selectedServer!);
if (result['result'] == 'success') {