Skip to content

Commit e1a7f94

Browse files
committed
small changes in animations
1 parent 1569dfc commit e1a7f94

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/views/favourites_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter/services.dart';
3+
import 'package:flutter_animate/flutter_animate.dart';
34
import 'package:flutter_dotenv/flutter_dotenv.dart';
45
import 'package:hadithsearcher/utilities/show_navigation_drawer.dart';
56
import 'package:hadithsearcher/views/similar_hadith_view.dart';
@@ -430,7 +431,7 @@ class _FavouritesViewState extends State<FavouritesView> {
430431
),
431432
);
432433
},
433-
),
434+
).animate().fade(duration: 200.ms),
434435
),
435436
],
436437
),

lib/views/search_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,9 +1191,9 @@ class _SearchViewState extends State<SearchView> {
11911191
),
11921192
],
11931193
),
1194-
).animate().fade(duration: 200.ms);
1194+
);
11951195
},
1196-
),
1196+
).animate().fade(duration: 200.ms),
11971197
),
11981198
_isEmpty
11991199
? const Text('')

lib/views/similar_hadith_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:flutter_animate/flutter_animate.dart';
23
import 'package:flutter_dotenv/flutter_dotenv.dart';
34
import 'package:http/http.dart' as http;
45
import 'dart:async';
@@ -419,7 +420,7 @@ class _SimilarHadithViewState extends State<SimilarHadithView> {
419420
),
420421
);
421422
},
422-
),
423+
).animate().fade(duration: 200.ms),
423424
),
424425
],
425426
),

0 commit comments

Comments
 (0)