Skip to content

Commit

Permalink
Parent Widget fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunBalajiR committed Feb 19, 2021
1 parent 1f3a216 commit 51e0e29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions lib/screens/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ class _LoginScreenState extends State<LoginScreen> {
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(
Expand Down
12 changes: 5 additions & 7 deletions lib/screens/registration_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,11 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
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(
Expand Down

0 comments on commit 51e0e29

Please sign in to comment.