Skip to content

Commit 0864a9b

Browse files
authored
Merge pull request mitesh77#67 from Hart87/master
Functionality addition to ListTitle
2 parents 52a9495 + 3f3b70c commit 0864a9b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ class _HomeDrawerState extends State<HomeDrawer> {
154154
Icons.power_settings_new,
155155
color: Colors.red,
156156
),
157-
onTap: () {},
157+
onTap: () {
158+
onTapped();
159+
},
158160
),
159161
SizedBox(
160162
height: MediaQuery.of(context).padding.bottom,
@@ -165,6 +167,10 @@ class _HomeDrawerState extends State<HomeDrawer> {
165167
),
166168
);
167169
}
170+
171+
void onTapped() {
172+
print('Doing Something...'); // Print to console.
173+
}
168174

169175
Widget inkwell(DrawerList listData) {
170176
return Material(

best_flutter_ui_templates/lib/invite_friend_screen.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ class _InviteFriendState extends State<InviteFriend> {
7070
child: Material(
7171
color: Colors.transparent,
7272
child: InkWell(
73-
onTap: () {},
73+
onTap: () {
74+
//method here for functionality
75+
print('Share Action.');
76+
},
7477
child: Center(
7578
child: Row(
7679
mainAxisAlignment: MainAxisAlignment.center,

0 commit comments

Comments
 (0)