Skip to content

Commit

Permalink
[added]: interactiveviewer class widget
Browse files Browse the repository at this point in the history
  • Loading branch information
SuvamPrasd committed Nov 7, 2020
1 parent 023c884 commit 2467447
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
12 changes: 7 additions & 5 deletions lib/screens/mens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ class Mens extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image(
image: AssetImage(
'assets/images/period.jpg',
InteractiveViewer(
child: Image(
image: AssetImage(
'assets/images/period.jpg',
),
fit: BoxFit.contain,
alignment: Alignment.center,
),
fit: BoxFit.contain,
alignment: Alignment.center,
),
SizedBox(
height: 10,
Expand Down
24 changes: 14 additions & 10 deletions lib/screens/puberty.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,26 @@ class Puberty extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image(
image: AssetImage(
'assets/images/puberty1.jpg',
InteractiveViewer(
child: Image(
image: AssetImage(
'assets/images/puberty1.jpg',
),
fit: BoxFit.contain,
alignment: Alignment.center,
),
fit: BoxFit.contain,
alignment: Alignment.center,
),
SizedBox(
height: 10,
),
Image(
image: AssetImage(
'assets/images/female-chart.png',
InteractiveViewer(
child: Image(
image: AssetImage(
'assets/images/female-chart.png',
),
fit: BoxFit.contain,
alignment: Alignment.center,
),
fit: BoxFit.contain,
alignment: Alignment.center,
),
SizedBox(
height: 10,
Expand Down

0 comments on commit 2467447

Please sign in to comment.