Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions lib/src/app_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,18 @@ final class _DrawerHeaderState extends State<_DrawerHeader> {
null,
),

(null, true) =>
_buildAuthHeader(Icons.no_accounts_sharp, "Unauthorized", (
(null, true) => _buildAuthHeader(
Icons.no_accounts_sharp,
"Unauthorized",
(
"Login",
() => closeDrawerThen(() {
infoBox(context, "Log in", "Contacting KeyCloak ...");
AuthService.requestLogin(context);
}),
), _buildMissingRolesWarning(context, widget.neededRoles)),
),
_buildMissingRolesWarning(context, widget.neededRoles),
),

(UserInfo user, true) => _buildAuthHeader(
Icons.account_circle,
Expand Down Expand Up @@ -496,8 +500,7 @@ final class _RouterApp extends StatelessWidget {
theme: theme.light,
darkTheme: theme.dark,
routerConfig: router,
builder: (context, child) =>
SelectionArea(child: child ?? const SizedBox()),
builder: (context, child) => child ?? const SizedBox(),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_controls_core
description: A Flutter package to write Fermilab applications.
version: 1.3.0
version: 1.4.0
publish_to: none

environment:
Expand Down
Loading