diff --git a/lib/pages/home/accounts_modal.dart b/lib/pages/home/accounts_modal.dart index 9665594..46ac181 100644 --- a/lib/pages/home/accounts_modal.dart +++ b/lib/pages/home/accounts_modal.dart @@ -78,14 +78,14 @@ class UserAccountModal extends StatelessWidget { width: 40, decoration: BoxDecoration( image: user.imageInfo?.small != null - ? DecorationImage( - image: NetworkImage( - user.imageInfo?.small, - ), - colorFilter: colorFilter, - fit: BoxFit.cover, - ) - : null, + ? DecorationImage( + image: NetworkImage( + user.imageInfo?.small, + ), + colorFilter: colorFilter, + fit: BoxFit.cover, + ) + : null, shape: BoxShape.circle, border: border, ), @@ -231,8 +231,11 @@ class _AccountsModalState extends EpicState { Widget build(BuildContext context) { Widget content; if (loading) { - content = Center( - child: CircularProgressIndicator(), + content = Container( + height: 50, + child: Center( + child: CircularProgressIndicator(), + ), ); } else if (users.isEmpty) { content = Padding( diff --git a/lib/pages/home/artists/artists_tab.dart b/lib/pages/home/artists/artists_tab.dart index c985560..0a020c9 100644 --- a/lib/pages/home/artists/artists_tab.dart +++ b/lib/pages/home/artists/artists_tab.dart @@ -3,6 +3,8 @@ import 'package:flutter/material.dart'; import 'routes.dart'; class ArtistsTab extends StatelessWidget { + const ArtistsTab([Key key]): super(key: key); + @override Widget build(BuildContext context) { return Navigator( diff --git a/lib/pages/home/home_page.dart b/lib/pages/home/home_page.dart index 74afa52..9ae82b7 100644 --- a/lib/pages/home/home_page.dart +++ b/lib/pages/home/home_page.dart @@ -83,7 +83,7 @@ class _HomePageState extends EpicState { ) : Column( children: [ - Expanded(child: ArtistsTab()), + Expanded(child: ArtistsTab(ValueKey(user.id))), // Not in bottomNavigationBar property to let bottom sheet // be over the bottom nav bar BottomNavigationBar( diff --git a/pubspec.yaml b/pubspec.yaml index e306156..37dc7e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: lastfm_dashboard description: Last.fm Dashboard -version: 0.1.0+1 +version: 0.1.1+1 environment: sdk: ">=2.8.0-dev.12 <3.0.0"