From 16abaf20fbc610c279626346fa44409a9b584f6d Mon Sep 17 00:00:00 2001 From: Vishnu Date: Mon, 28 Jun 2021 16:50:48 +0530 Subject: [PATCH] Remove unused code --- lib/ui/free_space_page.dart | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/lib/ui/free_space_page.dart b/lib/ui/free_space_page.dart index 7b7244126..a6ddf2030 100644 --- a/lib/ui/free_space_page.dart +++ b/lib/ui/free_space_page.dart @@ -13,7 +13,6 @@ import 'package:photos/ui/loading_widget.dart'; import 'package:photos/utils/data_util.dart'; import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/dialog_util.dart'; -import 'package:photos/utils/toast_util.dart'; import 'package:url_launcher/url_launcher.dart'; class FreeSpacePage extends StatefulWidget { @@ -25,8 +24,6 @@ class FreeSpacePage extends StatefulWidget { class _FreeSpacePageState extends State { Future _future; - final _confettiController = - ConfettiController(duration: const Duration(seconds: 1)); @override void initState() { @@ -51,22 +48,7 @@ class _FreeSpacePageState extends State { ), ), ), - body: Container( - child: Stack(children: [ - Align( - alignment: Alignment.topCenter, - child: ConfettiWidget( - confettiController: _confettiController, - blastDirection: pi / 2, - emissionFrequency: 0, - numberOfParticles: 10, // a lot of particles at once - gravity: 1, - blastDirectionality: BlastDirectionality.explosive, - ), - ), - _getBody(), - ]), - ), + body: _getBody(), ); }