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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ flutter_controls_core:
git:
url: https://github.com/fermi-ad/flutter-controls-core.git
tag_pattern: v{{version}}
version: ^1.2.0
version: ^1.3.0
```

_NOTE:_ This project is under very active development so calling this the
Expand Down
19 changes: 8 additions & 11 deletions lib/src/app_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ final class _GlobalAppTheme {
);

Widget _buildAuthHeader(
final IconData icon,
final String account,
final (String, void Function())? buttonInfo,
final Widget? subtitle,
IconData icon,
String account,
(String, void Function())? buttonInfo,
Widget? subtitle,
) => Padding(
padding: const .symmetric(vertical: 8.0, horizontal: 8.0),
child: Row(
Expand Down Expand Up @@ -113,10 +113,8 @@ Widget? _buildMissingRolesWarning(BuildContext context, Set<String> needed) {
const SizedBox(width: 4.0),
Text(
"Missing Roles",
style: Theme.of(context).textTheme.labelSmall?.copyWith(
color: colorScheme.error,
fontWeight: .bold,
),
style: Theme.of(context).textTheme.labelSmall
?.copyWith(color: colorScheme.error, fontWeight: .bold),
),
],
),
Expand All @@ -135,9 +133,8 @@ Widget? _buildMissingRolesWarning(BuildContext context, Set<String> needed) {
),
child: Text(
role,
style: Theme.of(context).textTheme.labelSmall?.copyWith(
color: colorScheme.onErrorContainer,
),
style: Theme.of(context).textTheme.labelSmall
?.copyWith(color: colorScheme.onErrorContainer),
),
),
)
Expand Down
4 changes: 2 additions & 2 deletions lib/src/widgets/param_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ParameterPanel extends StatelessWidget {
});

@override
Widget build(final BuildContext context) {
Widget build(BuildContext context) {
final theme = Theme.of(context);

return Card.outlined(
Expand All @@ -61,7 +61,7 @@ class ParameterPanel extends StatelessWidget {
child: Text(title, style: theme.textTheme.titleMedium),
),
...contents.map(
(final widget) => Padding(
(widget) => Padding(
padding: const .symmetric(vertical: 2.0, horizontal: 8.0),
child: widget,
),
Expand Down
6 changes: 3 additions & 3 deletions lib/src/widgets/param_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _ParameterPanelRowState extends State<ParameterPanelRow> {
}
}

String _getCurrentValue(final BuildContext context) =>
String _getCurrentValue(BuildContext context) =>
widget.value ?? widget.valueBuilder!(context);

void _enterEditMode() {
Expand Down Expand Up @@ -101,7 +101,7 @@ class _ParameterPanelRowState extends State<ParameterPanelRow> {
}

@override
Widget build(final BuildContext context) {
Widget build(BuildContext context) {
final theme = Theme.of(context);
final style = theme.textTheme.bodyMedium!;

Expand Down Expand Up @@ -183,6 +183,6 @@ class _ValueBuilder extends StatelessWidget {
final TextStyle? style;

@override
Widget build(final BuildContext context) =>
Widget build(BuildContext context) =>
Text(builder(context), style: style, overflow: .clip, textAlign: .right);
}
13 changes: 7 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: flutter_controls_core
description: A Flutter package to write Fermilab applications.
version: 1.2.5
version: 1.3.0
publish_to: none

environment:
sdk: ">=3.12.0 <4.0.0"
flutter: ">=3.44.0"
sdk: ">=3.13.0 <4.0.0"
flutter: ">=3.47.0"

dependencies:
flutter:
sdk: flutter

# One of our app types uses the GoRouter widget, so we need to include this
# package.
go_router: ^17.5.0
go_router: ^18.0.0
opentelemetry: ^0.18.10
toastification: ^3.2.0

# Needed for KeyCloak authentication support.
flutter_controls_auth:
git:
url: https://github.com/fermi-ad/flutter-controls-auth.git
ref: main
tag_pattern: v{{version}}
version: ^0.8.0

bison_design_system:
git:
Expand All @@ -33,7 +34,7 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^6.0.0
very_good_analysis: ^10.1.0
analyzer: ^12.1.0
analyzer: ^13.0.0

test: ^1.24.3
mocktail: ^1.0.4
Expand Down
Loading