Skip to content

Commit ea5b977

Browse files
author
github-actions
committed
chore(automated): Lint commit and format
1 parent e3fe839 commit ea5b977

File tree

3 files changed

+35
-75
lines changed

3 files changed

+35
-75
lines changed

example/lib/utils/theme_color_switch.dart

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// import 'package:flutter/material.dart';
22
// import 'package:zeta_flutter/zeta_flutter.dart';
33

4-
5-
64
// class ZetaThemeColorSwitch extends StatelessWidget {
75
// ZetaThemeColorSwitch({super.key});
86

test/src/utils/extensions_test.mocks.dart

+26-53
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget {
3939
);
4040

4141
@override
42-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
43-
super.toString();
42+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
4443
}
4544

46-
class _FakeInheritedWidget_1 extends _i1.SmartFake
47-
implements _i2.InheritedWidget {
45+
class _FakeInheritedWidget_1 extends _i1.SmartFake implements _i2.InheritedWidget {
4846
_FakeInheritedWidget_1(
4947
Object parent,
5048
Invocation parentInvocation,
@@ -54,12 +52,10 @@ class _FakeInheritedWidget_1 extends _i1.SmartFake
5452
);
5553

5654
@override
57-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
58-
super.toString();
55+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
5956
}
6057

61-
class _FakeDiagnosticsNode_2 extends _i1.SmartFake
62-
implements _i3.DiagnosticsNode {
58+
class _FakeDiagnosticsNode_2 extends _i1.SmartFake implements _i3.DiagnosticsNode {
6359
_FakeDiagnosticsNode_2(
6460
Object parent,
6561
Invocation parentInvocation,
@@ -76,8 +72,7 @@ class _FakeDiagnosticsNode_2 extends _i1.SmartFake
7672
super.toString();
7773
}
7874

79-
class _FakeZetaColorSwatch_3 extends _i1.SmartFake
80-
implements _i4.ZetaColorSwatch {
75+
class _FakeZetaColorSwatch_3 extends _i1.SmartFake implements _i4.ZetaColorSwatch {
8176
_FakeZetaColorSwatch_3(
8277
Object parent,
8378
Invocation parentInvocation,
@@ -87,8 +82,7 @@ class _FakeZetaColorSwatch_3 extends _i1.SmartFake
8782
);
8883
}
8984

90-
class _FakeZetaPureColorSwatch_4 extends _i1.SmartFake
91-
implements _i4.ZetaPureColorSwatch {
85+
class _FakeZetaPureColorSwatch_4 extends _i1.SmartFake implements _i4.ZetaPureColorSwatch {
9286
_FakeZetaPureColorSwatch_4(
9387
Object parent,
9488
Invocation parentInvocation,
@@ -108,8 +102,7 @@ class _FakeColor_5 extends _i1.SmartFake implements _i5.Color {
108102
);
109103
}
110104

111-
class _FakeZetaSemanticBorderColors_6 extends _i1.SmartFake
112-
implements _i6.ZetaSemanticBorderColors {
105+
class _FakeZetaSemanticBorderColors_6 extends _i1.SmartFake implements _i6.ZetaSemanticBorderColors {
113106
_FakeZetaSemanticBorderColors_6(
114107
Object parent,
115108
Invocation parentInvocation,
@@ -119,8 +112,7 @@ class _FakeZetaSemanticBorderColors_6 extends _i1.SmartFake
119112
);
120113
}
121114

122-
class _FakeZetaSemanticMainColors_7 extends _i1.SmartFake
123-
implements _i6.ZetaSemanticMainColors {
115+
class _FakeZetaSemanticMainColors_7 extends _i1.SmartFake implements _i6.ZetaSemanticMainColors {
124116
_FakeZetaSemanticMainColors_7(
125117
Object parent,
126118
Invocation parentInvocation,
@@ -130,8 +122,7 @@ class _FakeZetaSemanticMainColors_7 extends _i1.SmartFake
130122
);
131123
}
132124

133-
class _FakeZetaPrimitives_8 extends _i1.SmartFake
134-
implements _i6.ZetaPrimitives {
125+
class _FakeZetaPrimitives_8 extends _i1.SmartFake implements _i6.ZetaPrimitives {
135126
_FakeZetaPrimitives_8(
136127
Object parent,
137128
Invocation parentInvocation,
@@ -141,8 +132,7 @@ class _FakeZetaPrimitives_8 extends _i1.SmartFake
141132
);
142133
}
143134

144-
class _FakeZetaSemanticStateColors_9 extends _i1.SmartFake
145-
implements _i6.ZetaSemanticStateColors {
135+
class _FakeZetaSemanticStateColors_9 extends _i1.SmartFake implements _i6.ZetaSemanticStateColors {
146136
_FakeZetaSemanticStateColors_9(
147137
Object parent,
148138
Invocation parentInvocation,
@@ -152,8 +142,7 @@ class _FakeZetaSemanticStateColors_9 extends _i1.SmartFake
152142
);
153143
}
154144

155-
class _FakeZetaSemanticSurfaceColors_10 extends _i1.SmartFake
156-
implements _i6.ZetaSemanticSurfaceColors {
145+
class _FakeZetaSemanticSurfaceColors_10 extends _i1.SmartFake implements _i6.ZetaSemanticSurfaceColors {
157146
_FakeZetaSemanticSurfaceColors_10(
158147
Object parent,
159148
Invocation parentInvocation,
@@ -173,8 +162,7 @@ class _FakeZetaColors_11 extends _i1.SmartFake implements _i7.ZetaColors {
173162
);
174163
}
175164

176-
class _FakeZetaColorScheme_12 extends _i1.SmartFake
177-
implements _i8.ZetaColorScheme {
165+
class _FakeZetaColorScheme_12 extends _i1.SmartFake implements _i8.ZetaColorScheme {
178166
_FakeZetaColorScheme_12(
179167
Object parent,
180168
Invocation parentInvocation,
@@ -184,12 +172,10 @@ class _FakeZetaColorScheme_12 extends _i1.SmartFake
184172
);
185173

186174
@override
187-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
188-
super.toString();
175+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
189176
}
190177

191-
class _FakeZetaSemanticColors_13 extends _i1.SmartFake
192-
implements _i6.ZetaSemanticColors {
178+
class _FakeZetaSemanticColors_13 extends _i1.SmartFake implements _i6.ZetaSemanticColors {
193179
_FakeZetaSemanticColors_13(
194180
Object parent,
195181
Invocation parentInvocation,
@@ -199,8 +185,7 @@ class _FakeZetaSemanticColors_13 extends _i1.SmartFake
199185
);
200186
}
201187

202-
class _FakeZetaSpacingSemantics_14 extends _i1.SmartFake
203-
implements _i6.ZetaSpacingSemantics {
188+
class _FakeZetaSpacingSemantics_14 extends _i1.SmartFake implements _i6.ZetaSpacingSemantics {
204189
_FakeZetaSpacingSemantics_14(
205190
Object parent,
206191
Invocation parentInvocation,
@@ -210,8 +195,7 @@ class _FakeZetaSpacingSemantics_14 extends _i1.SmartFake
210195
);
211196
}
212197

213-
class _FakeZetaRadiiSemantics_15 extends _i1.SmartFake
214-
implements _i6.ZetaRadiiSemantics {
198+
class _FakeZetaRadiiSemantics_15 extends _i1.SmartFake implements _i6.ZetaRadiiSemantics {
215199
_FakeZetaRadiiSemantics_15(
216200
Object parent,
217201
Invocation parentInvocation,
@@ -221,8 +205,7 @@ class _FakeZetaRadiiSemantics_15 extends _i1.SmartFake
221205
);
222206
}
223207

224-
class _FakeInheritedElement_16 extends _i1.SmartFake
225-
implements _i2.InheritedElement {
208+
class _FakeInheritedElement_16 extends _i1.SmartFake implements _i2.InheritedElement {
226209
_FakeInheritedElement_16(
227210
Object parent,
228211
Invocation parentInvocation,
@@ -232,8 +215,7 @@ class _FakeInheritedElement_16 extends _i1.SmartFake
232215
);
233216

234217
@override
235-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
236-
super.toString();
218+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
237219
}
238220

239221
/// A class which mocks [BuildContext].
@@ -297,8 +279,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
297279
) as _i2.InheritedWidget);
298280

299281
@override
300-
void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) =>
301-
super.noSuchMethod(
282+
void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => super.noSuchMethod(
302283
Invocation.method(
303284
#visitAncestorElements,
304285
[visitor],
@@ -316,8 +297,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
316297
);
317298

318299
@override
319-
void dispatchNotification(_i9.Notification? notification) =>
320-
super.noSuchMethod(
300+
void dispatchNotification(_i9.Notification? notification) => super.noSuchMethod(
321301
Invocation.method(
322302
#dispatchNotification,
323303
[notification],
@@ -384,9 +364,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
384364
) as _i3.DiagnosticsNode);
385365

386366
@override
387-
List<_i3.DiagnosticsNode> describeMissingAncestor(
388-
{required Type? expectedAncestorType}) =>
389-
(super.noSuchMethod(
367+
List<_i3.DiagnosticsNode> describeMissingAncestor({required Type? expectedAncestorType}) => (super.noSuchMethod(
390368
Invocation.method(
391369
#describeMissingAncestor,
392370
[],
@@ -397,8 +375,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
397375
) as List<_i3.DiagnosticsNode>);
398376

399377
@override
400-
_i3.DiagnosticsNode describeOwnershipChain(String? name) =>
401-
(super.noSuchMethod(
378+
_i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod(
402379
Invocation.method(
403380
#describeOwnershipChain,
404381
[name],
@@ -1442,8 +1419,7 @@ class MockZetaColors extends _i1.Mock implements _i7.ZetaColors {
14421419
) as _i7.ZetaColors);
14431420

14441421
@override
1445-
_i7.ZetaColors apply({required _i10.ZetaContrast? contrast}) =>
1446-
(super.noSuchMethod(
1422+
_i7.ZetaColors apply({required _i10.ZetaContrast? contrast}) => (super.noSuchMethod(
14471423
Invocation.method(
14481424
#apply,
14491425
[],
@@ -1575,8 +1551,7 @@ class MockZeta extends _i1.Mock implements _i7.Zeta {
15751551
) as _i2.Widget);
15761552

15771553
@override
1578-
bool updateShouldNotify(_i2.InheritedWidget? oldWidget) =>
1579-
(super.noSuchMethod(
1554+
bool updateShouldNotify(_i2.InheritedWidget? oldWidget) => (super.noSuchMethod(
15801555
Invocation.method(
15811556
#updateShouldNotify,
15821557
[oldWidget],
@@ -1586,8 +1561,7 @@ class MockZeta extends _i1.Mock implements _i7.Zeta {
15861561
) as bool);
15871562

15881563
@override
1589-
void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) =>
1590-
super.noSuchMethod(
1564+
void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod(
15911565
Invocation.method(
15921566
#debugFillProperties,
15931567
[properties],
@@ -1768,6 +1742,5 @@ class MockZeta extends _i1.Mock implements _i7.Zeta {
17681742
) as List<_i3.DiagnosticsNode>);
17691743

17701744
@override
1771-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
1772-
super.toString();
1745+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
17731746
}

test/src/zeta_provider_test.mocks.dart

+9-20
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,15 @@ import 'package:zeta_flutter/src/theme/theme_service.dart' as _i2;
2929
/// See the documentation for Mockito's code generation for more information.
3030
class MockZetaThemeService extends _i1.Mock implements _i2.ZetaThemeService {
3131
@override
32-
_i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>
33-
loadTheme() => (super.noSuchMethod(
34-
Invocation.method(
35-
#loadTheme,
36-
[],
37-
),
38-
returnValue: _i3.Future<
39-
(
40-
_i4.ZetaThemeData?,
41-
_i5.ThemeMode?,
42-
_i6.ZetaContrast?
43-
)>.value((null, null, null)),
44-
returnValueForMissingStub: _i3.Future<
45-
(
46-
_i4.ZetaThemeData?,
47-
_i5.ThemeMode?,
48-
_i6.ZetaContrast?
49-
)>.value((null, null, null)),
50-
) as _i3
51-
.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>);
32+
_i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)> loadTheme() => (super.noSuchMethod(
33+
Invocation.method(
34+
#loadTheme,
35+
[],
36+
),
37+
returnValue: _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>.value((null, null, null)),
38+
returnValueForMissingStub:
39+
_i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>.value((null, null, null)),
40+
) as _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>);
5241

5342
@override
5443
_i3.Future<void> saveTheme({

0 commit comments

Comments
 (0)