Skip to content

Commit 1306c53

Browse files
authored
Flutter latest (#1156)
2 parents 558e77d + cf5fa13 commit 1306c53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+248
-1463
lines changed

CHANGELOG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
## [next]
1+
## 4.10.0
22

3-
- feat: Add `ColorPicker` ([#1001](https://github.com/bdlukaa/fluent_ui/issues/1001)
43
- fix: Add missing properties (`closeIconSize`, `closeButtonStyle`) in `debugFillProperties` and `InfoBarThemeData.merge` ([#1128](https://github.com/bdlukaa/fluent_ui/issues/1128)
54
- 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))]
65
- fix: Correctly unfocus `NumberBox` when user taps outside ([#1135](https://github.com/bdlukaa/fluent_ui/issues/1135))
@@ -36,6 +35,10 @@
3635
- feat: Add `DropDownButton.style` ([#1139](https://github.com/bdlukaa/fluent_ui/issues/1139))
3736
- feat: Possibility to open date and time pickers programatically ([#1142](https://github.com/bdlukaa/fluent_ui/issues/1142))
3837
- fix: `TimePicker` hour offset
38+
- feat: Add `ColorPicker` ([#1152](https://github.com/bdlukaa/fluent_ui/pull/1152))
39+
- fix: `NumberBox` initial value formatting ([#1153](https://github.com/bdlukaa/fluent_ui/issues/1153))
40+
- fix: `NumberBox` incrementing/decrementing when not focused ([#1124](https://github.com/bdlukaa/fluent_ui/issues/1124))
41+
- fix: `NumberBox` text is correctly when there are no visible actions ([#1150](https://github.com/bdlukaa/fluent_ui/issues/1150))
3942

4043
## 4.9.2
4144

@@ -84,8 +87,8 @@
8487
return ButtonState.forStates<Color>(
8588
states,
8689
disabled: Colors.grey,
87-
hovered: Colors.white.withOpacity(0.8),
88-
pressed: Colors.white.withOpacity(0.6),
90+
hovered: Colors.white.withValues(alpha: 0.8),
91+
pressed: Colors.white.withValues(alpha: 0.6),
8992
);
9093
}),
9194
),
@@ -108,8 +111,8 @@
108111
return WidgetStateExtension.forStates<Color>(
109112
states,
110113
disabled: Colors.grey,
111-
hovered: Colors.white.withOpacity(0.8),
112-
pressed: Colors.white.withOpacity(0.6),
114+
hovered: Colors.white.withValues(alpha: 0.8),
115+
pressed: Colors.white.withValues(alpha: 0.6),
113116
);
114117
}),
115118
),

example/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ app.*.map.json
4141

4242
/android/
4343
ios/
44+
45+
# Flutter generated plugin files
46+
linux/flutter/generated_*
47+
macos/Flutter/GeneratedPluginRegistrant.*
48+
windows/flutter/generated_*

example/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@ class _MyHomePageState extends State<MyHomePage> with WindowListener {
557557
case NavigationIndicators.end:
558558
return const EndNavigationIndicator();
559559
case NavigationIndicators.sticky:
560-
default:
561560
return const StickyNavigationIndicator();
562561
}
563562
}(),

example/lib/screens/home.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class _HomePageState extends State<HomePage> with PageMixin {
200200
shaderCallback: (rect) {
201201
return LinearGradient(
202202
colors: [
203-
Colors.white.withOpacity(0.8),
203+
Colors.white.withValues(alpha: 0.8),
204204
...Colors.accentColors,
205205
],
206206
).createShader(rect);

example/lib/screens/popups/flyout.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ return GestureDetector(
531531
);
532532
533533
contextController.showFlyout(
534-
barrierColor: Colors.black.withOpacity(0.1),
534+
barrierColor: Colors.black.withValues(alpha: 0.1),
535535
position: position,
536536
builder: (context) {
537537
return FlyoutContent(
@@ -591,7 +591,7 @@ return GestureDetector(
591591

592592
void showFlyout(Offset position) {
593593
contextController.showFlyout(
594-
barrierColor: Colors.black.withOpacity(0.1),
594+
barrierColor: Colors.black.withValues(alpha: 0.1),
595595
position: position,
596596
barrierRecognizer: TapGestureRecognizer()
597597
..onTap = () {

example/lib/screens/surface/acrylic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class _AcrylicPageState extends State<AcrylicPage> with PageMixin {
4040
@override
4141
Widget build(BuildContext context) {
4242
final menuColor =
43-
FluentTheme.of(context).menuColor.withOpacity(kMenuColorOpacity);
43+
FluentTheme.of(context).menuColor.withValues(alpha: kMenuColorOpacity);
4444

4545
return ScaffoldPage.scrollable(
4646
header: const PageHeader(title: Text('Acrylic')),

example/lib/screens/theming/reveal_focus.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RevealFocusPage extends StatelessWidget with PageMixin {
4545
child: FocusTheme(
4646
data: FocusThemeData(
4747
borderRadius: BorderRadius.zero,
48-
// glowColor: theme.accentColor.withOpacity(0.2),
48+
// glowColor: theme.accentColor.withValues(alpha: 0.2),
4949
glowFactor: 4.0,
5050
primaryBorder: BorderSide(
5151
width: 2.0,

example/lib/theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AppTheme extends ChangeNotifier {
4949
WindowEffect.solid,
5050
WindowEffect.acrylic,
5151
].contains(effect)
52-
? FluentTheme.of(context).micaBackgroundColor.withOpacity(0.05)
52+
? FluentTheme.of(context).micaBackgroundColor.withValues(alpha: 0.05)
5353
: Colors.transparent,
5454
dark: FluentTheme.of(context).brightness.isDark,
5555
);

example/linux/flutter/generated_plugin_registrant.cc

Lines changed: 0 additions & 31 deletions
This file was deleted.

example/linux/flutter/generated_plugin_registrant.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

example/linux/flutter/generated_plugins.cmake

Lines changed: 0 additions & 28 deletions
This file was deleted.

example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)