Skip to content

Commit c32bde5

Browse files
author
abdullah017
committed
#Custom_animated_container
1 parent 012cc6a commit c32bde5

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

lib/main.dart

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MyApp extends StatelessWidget {
2222
theme: ThemeData(
2323
primarySwatch: Colors.blue,
2424
),
25-
home: const AnimatedContainerWidget(),
25+
home: const MyReusableWidgetView(),
2626
);
2727
}
2828
}
@@ -99,6 +99,12 @@ class _MyReusableWidgetViewState extends State<MyReusableWidgetView> {
9999
child: Padding(
100100
padding: const EdgeInsets.only(top: 18.0),
101101
child: buildHeroWidgetScreen())),
102+
SliverToBoxAdapter(
103+
104+
///[CountPicker Area!]
105+
child: Padding(
106+
padding: const EdgeInsets.only(top: 18.0),
107+
child: buildAnimatedContainerScreen())),
102108
],
103109
),
104110
),
@@ -198,6 +204,18 @@ class _MyReusableWidgetViewState extends State<MyReusableWidgetView> {
198204
);
199205
}
200206

207+
CustomOutlineTextButton buildAnimatedContainerScreen() {
208+
return CustomOutlineTextButton(
209+
buttonText: 'GO TO ANIMATED WİDGET SCREEN',
210+
onPressed: () {
211+
Navigator.push(
212+
context,
213+
MaterialPageRoute(
214+
builder: (context) => const AnimatedContainerWidget()));
215+
},
216+
);
217+
}
218+
201219
///[TOGGLE BUTTON TAB CHANGE FUNCTION]
202220
tabChange(int newIndex) {
203221
for (int index = 0; index < toggleButtonItemsSelected.length; index++) {

0 commit comments

Comments
 (0)