Skip to content

Commit ebea818

Browse files
chrisbobbegnprice
authored andcommitted
settings [nfc]: Suppress some new deprecation warnings
See zulip#1546 for a PR that would resolve them, and why we're not doing that just now (it would require upgrading Flutter past a breaking change).
1 parent fc874ae commit ebea818

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/widgets/settings.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ class _ThemeSetting extends StatelessWidget {
5353
themeSetting: themeSettingOption,
5454
zulipLocalizations: zulipLocalizations)),
5555
value: themeSettingOption,
56+
// TODO(#1545) stop using the deprecated members
57+
// ignore: deprecated_member_use
5658
groupValue: globalSettings.themeSetting,
59+
// ignore: deprecated_member_use
5760
onChanged: (newValue) => _handleChange(context, newValue)),
5861
]);
5962
}

test/flutter_checks.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,7 @@ extension SwitchListTileChecks<T> on Subject<SwitchListTile> {
251251
}
252252

253253
extension RadioListTileChecks<T> on Subject<RadioListTile<T>> {
254+
// TODO(#1545) stop using the deprecated member
255+
// ignore: deprecated_member_use
254256
Subject<bool> get checked => has((x) => x.checked, 'checked');
255257
}

0 commit comments

Comments
 (0)