diff --git a/lib/screens/settings/sections/chat_settings.dart b/lib/screens/settings/sections/chat_settings.dart index 515a4449..edd1bcd7 100644 --- a/lib/screens/settings/sections/chat_settings.dart +++ b/lib/screens/settings/sections/chat_settings.dart @@ -64,7 +64,6 @@ class _ChatSettingsState extends State { ), const SectionHeader( 'Layout', - fontSize: 12.0, padding: sectionPadding, ), SwitchListTile.adaptive( @@ -113,7 +112,6 @@ class _ChatSettingsState extends State { ), const SectionHeader( 'Emotes', - fontSize: 12.0, padding: sectionPadding, ), SwitchListTile.adaptive( @@ -125,7 +123,6 @@ class _ChatSettingsState extends State { ), const SectionHeader( 'Message Appearance', - fontSize: 12.0, padding: sectionPadding, ), SwitchListTile.adaptive( @@ -166,7 +163,6 @@ class _ChatSettingsState extends State { ), const SectionHeader( 'Message Sizing', - fontSize: 12.0, padding: sectionPadding, ), ExpansionTile( diff --git a/lib/widgets/profile_picture.dart b/lib/widgets/profile_picture.dart index fda4892b..3cf78551 100644 --- a/lib/widgets/profile_picture.dart +++ b/lib/widgets/profile_picture.dart @@ -21,14 +21,13 @@ class ProfilePicture extends StatelessWidget { future: context.read().getUser(userLogin: userLogin, headers: context.read().headersTwitch), builder: (context, AsyncSnapshot snapshot) { return AnimatedOpacity( + opacity: snapshot.hasData ? 1 : 0, duration: const Duration(milliseconds: 500), - opacity: snapshot.connectionState == ConnectionState.done && snapshot.hasData ? 1.0 : 0.0, + curve: Curves.easeIn, child: CircleAvatar( radius: radius, backgroundColor: Colors.transparent, - foregroundImage: snapshot.connectionState == ConnectionState.done && snapshot.hasData - ? CachedNetworkImageProvider(snapshot.data!.profileImageUrl) - : null, + foregroundImage: snapshot.hasData ? CachedNetworkImageProvider(snapshot.data!.profileImageUrl) : null, ), ); }, diff --git a/lib/widgets/section_header.dart b/lib/widgets/section_header.dart index bef8a5fa..f57564d5 100644 --- a/lib/widgets/section_header.dart +++ b/lib/widgets/section_header.dart @@ -19,7 +19,6 @@ class SectionHeader extends StatelessWidget { child: Text( text.toUpperCase(), style: TextStyle( - color: DefaultTextStyle.of(context).style.color?.withOpacity(0.8), fontSize: fontSize, fontWeight: FontWeight.w600, letterSpacing: 0.5,