@@ -7,19 +7,16 @@ void main() {
77 testWidgets ('creates blur view with child' , (WidgetTester tester) async {
88 await tester.pumpWidget (
99 const MaterialApp (
10- home: Scaffold (
11- body: AdaptiveBlurView (
12- child: Text ('Test Child' ),
13- ),
14- ),
10+ home: Scaffold (body: AdaptiveBlurView (child: Text ('Test Child' ))),
1511 ),
1612 );
1713
1814 expect (find.text ('Test Child' ), findsOneWidget);
1915 });
2016
21- testWidgets ('creates blur view with custom blur style' ,
22- (WidgetTester tester) async {
17+ testWidgets ('creates blur view with custom blur style' , (
18+ WidgetTester tester,
19+ ) async {
2320 await tester.pumpWidget (
2421 const MaterialApp (
2522 home: Scaffold (
@@ -35,8 +32,9 @@ void main() {
3532 expect (find.byType (AdaptiveBlurView ), findsOneWidget);
3633 });
3734
38- testWidgets ('creates blur view with border radius' ,
39- (WidgetTester tester) async {
35+ testWidgets ('creates blur view with border radius' , (
36+ WidgetTester tester,
37+ ) async {
4038 await tester.pumpWidget (
4139 MaterialApp (
4240 home: Scaffold (
@@ -52,8 +50,9 @@ void main() {
5250 expect (find.byType (ClipRRect ), findsWidgets);
5351 });
5452
55- testWidgets ('applies BackdropFilter on non-iOS 26 platforms' ,
56- (WidgetTester tester) async {
53+ testWidgets ('applies BackdropFilter on non-iOS 26 platforms' , (
54+ WidgetTester tester,
55+ ) async {
5756 await tester.pumpWidget (
5857 const MaterialApp (
5958 home: Scaffold (
@@ -80,16 +79,23 @@ void main() {
8079 });
8180
8281 test ('BlurStyle converts to UIBlurEffect style string correctly' , () {
83- expect (BlurStyle .systemUltraThinMaterial.toUIBlurEffectStyle (),
84- 'systemUltraThinMaterial' );
85- expect (BlurStyle .systemThinMaterial.toUIBlurEffectStyle (),
86- 'systemThinMaterial' );
8782 expect (
88- BlurStyle .systemMaterial.toUIBlurEffectStyle (), 'systemMaterial' );
89- expect (BlurStyle .systemThickMaterial.toUIBlurEffectStyle (),
90- 'systemThickMaterial' );
91- expect (BlurStyle .systemChromeMaterial.toUIBlurEffectStyle (),
92- 'systemChromeMaterial' );
83+ BlurStyle .systemUltraThinMaterial.toUIBlurEffectStyle (),
84+ 'systemUltraThinMaterial' ,
85+ );
86+ expect (
87+ BlurStyle .systemThinMaterial.toUIBlurEffectStyle (),
88+ 'systemThinMaterial' ,
89+ );
90+ expect (BlurStyle .systemMaterial.toUIBlurEffectStyle (), 'systemMaterial' );
91+ expect (
92+ BlurStyle .systemThickMaterial.toUIBlurEffectStyle (),
93+ 'systemThickMaterial' ,
94+ );
95+ expect (
96+ BlurStyle .systemChromeMaterial.toUIBlurEffectStyle (),
97+ 'systemChromeMaterial' ,
98+ );
9399 });
94100
95101 test ('BlurStyle converts to ImageFilter correctly' , () {
@@ -99,16 +105,13 @@ void main() {
99105 expect (filter.runtimeType.toString (), contains ('ImageFilter' ));
100106 });
101107
102- testWidgets ('blur view works with different children widgets' ,
103- (WidgetTester tester) async {
108+ testWidgets ('blur view works with different children widgets' , (
109+ WidgetTester tester,
110+ ) async {
104111 // Test with Icon
105112 await tester.pumpWidget (
106113 const MaterialApp (
107- home: Scaffold (
108- body: AdaptiveBlurView (
109- child: Icon (Icons .home),
110- ),
111- ),
114+ home: Scaffold (body: AdaptiveBlurView (child: Icon (Icons .home))),
112115 ),
113116 );
114117 expect (find.byIcon (Icons .home), findsOneWidget);
@@ -118,11 +121,7 @@ void main() {
118121 MaterialApp (
119122 home: Scaffold (
120123 body: AdaptiveBlurView (
121- child: Container (
122- width: 100 ,
123- height: 100 ,
124- color: Colors .red,
125- ),
124+ child: Container (width: 100 , height: 100 , color: Colors .red),
126125 ),
127126 ),
128127 ),
@@ -134,12 +133,7 @@ void main() {
134133 const MaterialApp (
135134 home: Scaffold (
136135 body: AdaptiveBlurView (
137- child: Column (
138- children: [
139- Text ('Line 1' ),
140- Text ('Line 2' ),
141- ],
142- ),
136+ child: Column (children: [Text ('Line 1' ), Text ('Line 2' )]),
143137 ),
144138 ),
145139 ),
@@ -148,8 +142,9 @@ void main() {
148142 expect (find.text ('Line 2' ), findsOneWidget);
149143 });
150144
151- testWidgets ('blur view applies correct background color in light mode' ,
152- (WidgetTester tester) async {
145+ testWidgets ('blur view applies correct background color in light mode' , (
146+ WidgetTester tester,
147+ ) async {
153148 await tester.pumpWidget (
154149 MaterialApp (
155150 theme: ThemeData (brightness: Brightness .light),
@@ -167,8 +162,9 @@ void main() {
167162 expect (find.byType (BackdropFilter ), findsOneWidget);
168163 });
169164
170- testWidgets ('blur view applies correct background color in dark mode' ,
171- (WidgetTester tester) async {
165+ testWidgets ('blur view applies correct background color in dark mode' , (
166+ WidgetTester tester,
167+ ) async {
172168 await tester.pumpWidget (
173169 MaterialApp (
174170 theme: ThemeData (brightness: Brightness .dark),
0 commit comments