From 51e0e29875331be852fad8893cf718e8917c16fd Mon Sep 17 00:00:00 2001 From: ArunBalajiR Date: Fri, 19 Feb 2021 22:52:59 +0530 Subject: [PATCH] Parent Widget fixed --- lib/screens/login_screen.dart | 12 +++++------- lib/screens/registration_screen.dart | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/lib/screens/login_screen.dart b/lib/screens/login_screen.dart index f3523db..061a450 100644 --- a/lib/screens/login_screen.dart +++ b/lib/screens/login_screen.dart @@ -74,13 +74,11 @@ class _LoginScreenState extends State { SizedBox( height: 70.0, ), - Flexible( - child: Hero( - tag: 'logo', - child: Container( - height: 100.0, - child: Image.asset('images/logo.png'), - ), + Hero( + tag: 'logo', + child: Container( + height: 100.0, + child: Image.asset('images/logo.png'), ), ), SizedBox( diff --git a/lib/screens/registration_screen.dart b/lib/screens/registration_screen.dart index a3301ba..1097b8e 100644 --- a/lib/screens/registration_screen.dart +++ b/lib/screens/registration_screen.dart @@ -79,13 +79,11 @@ class _RegistrationScreenState extends State { SizedBox( height: 20.0, ), - Flexible( - child: Hero( - tag: 'logo', - child: Container( - height: 100.0, - child: Image.asset('images/logo.png'), - ), + Hero( + tag: 'logo', + child: Container( + height: 100.0, + child: Image.asset('images/logo.png'), ), ), SizedBox(