Skip to content

Commit

Permalink
fix lints for flutter 3.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dreautall committed Dec 17, 2024
1 parent d99ed04 commit 57abe70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/pages/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ class _LoginPageState extends State<LoginPage> {
(Set<String> newSelection) {
_hostFocusNode.requestFocus();
if (!UriScheme.valid(newSelection.first) ||
_uriScheme == newSelection.first) return;
_uriScheme == newSelection.first) {
return;
}
String currentUrl = _hostTextController.text;
String oldScheme, newScheme;
if (UriScheme.isHttp(newSelection.first)) {
Expand Down
8 changes: 4 additions & 4 deletions lib/widgets/materialiconbutton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class MaterialIconButton extends StatelessWidget {
style: IconButton.styleFrom(
foregroundColor: foregroundColor ?? colors.onPrimary,
backgroundColor: backgroundColor ?? colors.primary,
disabledBackgroundColor: colors.onSurface.withOpacity(0.12),
hoverColor: colors.onPrimary.withOpacity(0.08),
focusColor: colors.onPrimary.withOpacity(0.12),
highlightColor: colors.onPrimary.withOpacity(0.12),
disabledBackgroundColor: colors.onSurface.withAlpha(31), // was: 0.12
hoverColor: colors.onPrimary.withAlpha(20), // was: 0.08
focusColor: colors.onPrimary.withAlpha(31), // was: 0.12
highlightColor: colors.onPrimary.withAlpha(31), // was: 0.12
),
iconSize: iconSize,
onPressed: onPressed,
Expand Down

0 comments on commit 57abe70

Please sign in to comment.