Skip to content

Commit

Permalink
[#5] Remove BoxConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhanh44 committed Aug 8, 2023
1 parent a3e0891 commit 9a6d4f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/screens/splash/splash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ class SplashScreenState extends State<SplashScreen> {

void _delayedLogoVisibility() async {
await Future.delayed(const Duration(seconds: 1));
setState(() {
_isLogoVisible = true;
});
setState(() => _isLogoVisible = true);
}

@override
Expand All @@ -36,14 +34,14 @@ class SplashScreenState extends State<SplashScreen> {
Assets.images.splashBackground.path,
fit: BoxFit.cover,
),
_buildAnimatedLogo(constraints),
_buildAnimatedLogo(),
],
);
}),
);
}

Widget _buildAnimatedLogo(BoxConstraints constraints) {
Widget _buildAnimatedLogo() {
return AnimatedOpacity(
opacity: _isLogoVisible ? 1.0 : 0.0,
duration: const Duration(milliseconds: 500),
Expand Down

0 comments on commit 9a6d4f5

Please sign in to comment.