Browse Source

Remove implementing PreferredSizeWidget in FadingAppBar

ashilkn 2 years ago
parent
commit
745b511d69
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lib/ui/viewer/file/fading_app_bar.dart

+ 1 - 4
lib/ui/viewer/file/fading_app_bar.dart

@@ -30,7 +30,7 @@ import 'package:photos/utils/file_util.dart';
 import "package:photos/utils/magic_util.dart";
 import 'package:photos/utils/toast_util.dart';
 
-class FadingAppBar extends StatefulWidget implements PreferredSizeWidget {
+class FadingAppBar extends StatefulWidget {
   final File file;
   final Function(File) onFileRemoved;
   final double height;
@@ -48,9 +48,6 @@ class FadingAppBar extends StatefulWidget implements PreferredSizeWidget {
     Key? key,
   }) : super(key: key);
 
-  @override
-  Size get preferredSize => Size.fromHeight(height);
-
   @override
   FadingAppBarState createState() => FadingAppBarState();
 }