Skip to content

Commit

Permalink
Flutter latest (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Dec 13, 2024
2 parents 558e77d + cf5fa13 commit 1306c53
Show file tree
Hide file tree
Showing 42 changed files with 248 additions and 1,463 deletions.
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## [next]
## 4.10.0

- feat: Add `ColorPicker` ([#1001](https://github.com/bdlukaa/fluent_ui/issues/1001)
- fix: Add missing properties (`closeIconSize`, `closeButtonStyle`) in `debugFillProperties` and `InfoBarThemeData.merge` ([#1128](https://github.com/bdlukaa/fluent_ui/issues/1128)
- feat: Add `TabView.reservedStripWidth`, which adds a minimum empty area between the tabs and the tab view footer ([#1106](https://github.com/bdlukaa/fluent_ui/issues/1106))]
- fix: Correctly unfocus `NumberBox` when user taps outside ([#1135](https://github.com/bdlukaa/fluent_ui/issues/1135))
Expand Down Expand Up @@ -36,6 +35,10 @@
- feat: Add `DropDownButton.style` ([#1139](https://github.com/bdlukaa/fluent_ui/issues/1139))
- feat: Possibility to open date and time pickers programatically ([#1142](https://github.com/bdlukaa/fluent_ui/issues/1142))
- fix: `TimePicker` hour offset
- feat: Add `ColorPicker` ([#1152](https://github.com/bdlukaa/fluent_ui/pull/1152))
- fix: `NumberBox` initial value formatting ([#1153](https://github.com/bdlukaa/fluent_ui/issues/1153))
- fix: `NumberBox` incrementing/decrementing when not focused ([#1124](https://github.com/bdlukaa/fluent_ui/issues/1124))
- fix: `NumberBox` text is correctly when there are no visible actions ([#1150](https://github.com/bdlukaa/fluent_ui/issues/1150))

## 4.9.2

Expand Down Expand Up @@ -84,8 +87,8 @@
return ButtonState.forStates<Color>(
states,
disabled: Colors.grey,
hovered: Colors.white.withOpacity(0.8),
pressed: Colors.white.withOpacity(0.6),
hovered: Colors.white.withValues(alpha: 0.8),
pressed: Colors.white.withValues(alpha: 0.6),
);
}),
),
Expand All @@ -108,8 +111,8 @@
return WidgetStateExtension.forStates<Color>(
states,
disabled: Colors.grey,
hovered: Colors.white.withOpacity(0.8),
pressed: Colors.white.withOpacity(0.6),
hovered: Colors.white.withValues(alpha: 0.8),
pressed: Colors.white.withValues(alpha: 0.6),
);
}),
),
Expand Down
5 changes: 5 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ app.*.map.json

/android/
ios/

# Flutter generated plugin files
linux/flutter/generated_*
macos/Flutter/GeneratedPluginRegistrant.*
windows/flutter/generated_*
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ class _MyHomePageState extends State<MyHomePage> with WindowListener {
case NavigationIndicators.end:
return const EndNavigationIndicator();
case NavigationIndicators.sticky:
default:
return const StickyNavigationIndicator();
}
}(),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class _HomePageState extends State<HomePage> with PageMixin {
shaderCallback: (rect) {
return LinearGradient(
colors: [
Colors.white.withOpacity(0.8),
Colors.white.withValues(alpha: 0.8),
...Colors.accentColors,
],
).createShader(rect);
Expand Down
4 changes: 2 additions & 2 deletions example/lib/screens/popups/flyout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ return GestureDetector(
);
contextController.showFlyout(
barrierColor: Colors.black.withOpacity(0.1),
barrierColor: Colors.black.withValues(alpha: 0.1),
position: position,
builder: (context) {
return FlyoutContent(
Expand Down Expand Up @@ -591,7 +591,7 @@ return GestureDetector(

void showFlyout(Offset position) {
contextController.showFlyout(
barrierColor: Colors.black.withOpacity(0.1),
barrierColor: Colors.black.withValues(alpha: 0.1),
position: position,
barrierRecognizer: TapGestureRecognizer()
..onTap = () {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/surface/acrylic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _AcrylicPageState extends State<AcrylicPage> with PageMixin {
@override
Widget build(BuildContext context) {
final menuColor =
FluentTheme.of(context).menuColor.withOpacity(kMenuColorOpacity);
FluentTheme.of(context).menuColor.withValues(alpha: kMenuColorOpacity);

return ScaffoldPage.scrollable(
header: const PageHeader(title: Text('Acrylic')),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/theming/reveal_focus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RevealFocusPage extends StatelessWidget with PageMixin {
child: FocusTheme(
data: FocusThemeData(
borderRadius: BorderRadius.zero,
// glowColor: theme.accentColor.withOpacity(0.2),
// glowColor: theme.accentColor.withValues(alpha: 0.2),
glowFactor: 4.0,
primaryBorder: BorderSide(
width: 2.0,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AppTheme extends ChangeNotifier {
WindowEffect.solid,
WindowEffect.acrylic,
].contains(effect)
? FluentTheme.of(context).micaBackgroundColor.withOpacity(0.05)
? FluentTheme.of(context).micaBackgroundColor.withValues(alpha: 0.05)
: Colors.transparent,
dark: FluentTheme.of(context).brightness.isDark,
);
Expand Down
31 changes: 0 additions & 31 deletions example/linux/flutter/generated_plugin_registrant.cc

This file was deleted.

15 changes: 0 additions & 15 deletions example/linux/flutter/generated_plugin_registrant.h

This file was deleted.

28 changes: 0 additions & 28 deletions example/linux/flutter/generated_plugins.cmake

This file was deleted.

22 changes: 0 additions & 22 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift

This file was deleted.

Loading

0 comments on commit 1306c53

Please sign in to comment.