Skip to content

Commit

Permalink
refactor: remove loading que não estava funcionando.
Browse files Browse the repository at this point in the history
  • Loading branch information
larissaperinoto committed Jan 16, 2023
1 parent d0179b1 commit 70c4a72
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class MyApp extends StatelessWidget {
}

class MyAppState extends ChangeNotifier {
var favorites = <String>[];
var loading = false;

void setFirestore(String dog, String phrase) {
db
?.collection("favorites")
Expand Down Expand Up @@ -147,9 +144,6 @@ class _InitialPageState extends State<InitialPage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Visibility(
visible: appState.loading == true,
child: const CircularProgressIndicator()),
ImageCard(dog: currentDog),
const SizedBox(height: 10),
Row(
Expand Down

0 comments on commit 70c4a72

Please sign in to comment.