Skip to content

Commit 022b155

Browse files
authored
Make tree green again by fixing lints (flutter#179186)
Fallout from flutter#178827 and merging PRs that weren't updated.
1 parent 0b191ba commit 022b155

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/flutter/test/widgets/localizations_test.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ void main() {
109109
testWidgets('LocalizationsResolver.update notifies listeners when supportedLocales changes', (
110110
WidgetTester tester,
111111
) async {
112-
final LocalizationsResolver resolver = LocalizationsResolver(
113-
supportedLocales: <Locale>[const Locale('en')],
114-
);
112+
final resolver = LocalizationsResolver(supportedLocales: <Locale>[const Locale('en')]);
115113

116-
bool notified = false;
114+
var notified = false;
117115
resolver.addListener(() {
118116
notified = true;
119117
});
@@ -133,11 +131,11 @@ void main() {
133131
testWidgets('LocalizationsResolver.update does not notify when resolved locale unchanged', (
134132
WidgetTester tester,
135133
) async {
136-
final LocalizationsResolver resolver = LocalizationsResolver(
134+
final resolver = LocalizationsResolver(
137135
supportedLocales: <Locale>[const Locale('en'), const Locale('de')],
138136
);
139137

140-
bool notified = false;
138+
var notified = false;
141139
resolver.addListener(() {
142140
notified = true;
143141
});

packages/flutter_tools/test/general.shard/isolated/native_assets_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void main() {
288288
class _SetCCompilerConfigTarget extends FakeFlutterNativeAssetsBuildRunner {
289289
_SetCCompilerConfigTarget({super.buildResult, super.packagesWithNativeAssetsResult});
290290

291-
var didSetCCompilerConfig = false;
291+
bool didSetCCompilerConfig = false;
292292

293293
@override
294294
Future<void> setCCompilerConfig(CodeAssetTarget target) async {

0 commit comments

Comments
 (0)