File tree 4 files changed +3
-8
lines changed
flutter_secure_storage/example/lib
in_app_purchase/example/lib 4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ class ItemsWidgetState extends State<ItemsWidget> {
212
212
if (! context.mounted) return ;
213
213
final key = await _displayTextInputDialog (context, item.key);
214
214
final result = await _storage.containsKey (key: key);
215
- if (! mounted) return ;
215
+ if (! context. mounted) return ;
216
216
ScaffoldMessenger .of (context).showSnackBar (
217
217
SnackBar (
218
218
content: Text ('Contains Key: $result , key checked: $key ' ),
@@ -225,7 +225,7 @@ class ItemsWidgetState extends State<ItemsWidget> {
225
225
final key = await _displayTextInputDialog (context, item.key);
226
226
final result =
227
227
await _storage.read (key: key, aOptions: _getAndroidOptions ());
228
- if (! mounted) return ;
228
+ if (! context. mounted) return ;
229
229
ScaffoldMessenger .of (context).showSnackBar (
230
230
SnackBar (
231
231
content: Text ('value: $result ' ),
Original file line number Diff line number Diff line change @@ -234,8 +234,6 @@ class _MyAppState extends State<_MyApp> {
234
234
trailing: TextButton (
235
235
style: TextButton .styleFrom (
236
236
backgroundColor: Colors .green[800 ],
237
- // ignore: deprecated_member_use
238
- primary: Colors .white,
239
237
),
240
238
onPressed: () {
241
239
final PurchaseParam purchaseParam = PurchaseParam (
@@ -278,8 +276,6 @@ class _MyAppState extends State<_MyApp> {
278
276
TextButton (
279
277
style: TextButton .styleFrom (
280
278
backgroundColor: Theme .of (context).colorScheme.primary,
281
- // ignore: deprecated_member_use
282
- primary: Colors .white,
283
279
),
284
280
onPressed: () => _inAppPurchase.restorePurchases (),
285
281
child: const Text ('Restore purchases' ),
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ linter:
76
76
- prefer_initializing_formals
77
77
- prefer_void_to_null
78
78
#
79
- - always_require_non_null_named_parameters
80
79
- annotate_overrides
81
80
- avoid_init_to_null
82
81
- avoid_null_checks_in_equality_operators
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ class _SimpleDbTestPageState extends State<SimpleDbTestPage> {
315
315
final result =
316
316
firstIntValue (await db.query ('test' , columns: ['COUNT(*)' ]));
317
317
// Temp for nnbd successfull lint
318
- if (mounted) {
318
+ if (context. mounted) {
319
319
ScaffoldMessenger .of (context).showSnackBar (SnackBar (
320
320
content: Text ('$result records' ),
321
321
duration: const Duration (milliseconds: 700 ),
You can’t perform that action at this time.
0 commit comments