diff --git a/b0esche_cloud/lib/pages/home_page.dart b/b0esche_cloud/lib/pages/home_page.dart index c5e3b48..311d097 100644 --- a/b0esche_cloud/lib/pages/home_page.dart +++ b/b0esche_cloud/lib/pages/home_page.dart @@ -493,9 +493,14 @@ class _HomePageState extends State with TickerProviderStateMixin { if (!isLoggedIn) { return const SizedBox.shrink(); } - return BlocBuilder( + return BlocBuilder< + OrganizationBloc, + OrganizationState + >( builder: (context, orgState) { - final hasSelectedOrg = orgState is OrganizationLoaded && orgState.selectedOrg != null; + final hasSelectedOrg = + orgState is OrganizationLoaded && + orgState.selectedOrg != null; return Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/b0esche_cloud/lib/widgets/organization_settings_dialog.dart b/b0esche_cloud/lib/widgets/organization_settings_dialog.dart index 4942fef..3b42e95 100644 --- a/b0esche_cloud/lib/widgets/organization_settings_dialog.dart +++ b/b0esche_cloud/lib/widgets/organization_settings_dialog.dart @@ -25,7 +25,8 @@ class OrganizationSettingsDialog extends StatefulWidget { _OrganizationSettingsDialogState(); } -class _OrganizationSettingsDialogState extends State { +class _OrganizationSettingsDialogState + extends State { int _selectedTabIndex = 0; List _members = []; List _invitations = []; @@ -213,6 +214,8 @@ class _OrganizationSettingsDialogState extends State IconButton( onPressed: () => Navigator.of(context).pop(), icon: Icon(Icons.close, color: AppTheme.secondaryText), + splashColor: Colors.transparent, + highlightColor: Colors.transparent, ), ], ), @@ -291,16 +294,11 @@ class _OrganizationSettingsDialogState extends State child: AnimatedDefaultTextStyle( duration: const Duration(milliseconds: 200), style: TextStyle( - color: isSelected - ? AppTheme.accentColor - : AppTheme.secondaryText, + color: isSelected ? AppTheme.accentColor : AppTheme.secondaryText, fontWeight: isSelected ? FontWeight.bold : FontWeight.normal, fontSize: 14, ), - child: Text( - text, - textAlign: TextAlign.center, - ), + child: Text(text, textAlign: TextAlign.center), ), ), ), @@ -362,6 +360,8 @@ class _OrganizationSettingsDialogState extends State color: AppTheme.errorColor, ), onPressed: () => _removeMember(member.userId), + splashColor: Colors.transparent, + highlightColor: Colors.transparent, ), ], ) @@ -404,6 +404,8 @@ class _OrganizationSettingsDialogState extends State trailing: IconButton( icon: Icon(Icons.cancel, color: AppTheme.errorColor), onPressed: () => _cancelInvitation(inv.id), + splashColor: Colors.transparent, + highlightColor: Colors.transparent, ), ); }, @@ -514,10 +516,28 @@ class _OrganizationSettingsDialogState extends State mainAxisSize: MainAxisSize.min, children: [ TextButton( + style: ButtonStyle( + splashFactory: NoSplash.splashFactory, + overlayColor: WidgetStateProperty.resolveWith((Set states) { + if (states.contains(WidgetState.pressed)) { + return Colors.transparent; + } + return null; + }), + ), onPressed: () => _acceptJoinRequest(req.id, 'member'), child: const Text('Accept'), ), TextButton( + style: ButtonStyle( + splashFactory: NoSplash.splashFactory, + overlayColor: WidgetStateProperty.resolveWith((Set states) { + if (states.contains(WidgetState.pressed)) { + return Colors.transparent; + } + return null; + }), + ), onPressed: () => _rejectJoinRequest(req.id), child: Text( 'Reject',