Remove unnecessary imports.
Remove unnecessary if condition.
This commit is contained in:
parent
45f055cc5d
commit
f6d218b18a
@ -1,5 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ class Random3Widget extends ConsumerWidget {
|
||||
_ => const CircularProgressIndicator(),
|
||||
}),
|
||||
!myRandom.isLoading ? ElevatedButton(onPressed:() {
|
||||
if (!myRandom.isLoading)
|
||||
ref.read(randomNotifProvider.notifier).again();
|
||||
}, child: Text(myRandom.isLoading ? "wait":"new"))
|
||||
:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user