How to wrap this code in SingleChildScrollview?

101 views
Skip to first unread message

sona

unread,
Mar 8, 2021, 5:03:16 AM3/8/21
to Flutter Development (flutter-dev)
  How to wrap this code in SingleChildScrollview?
addtopSheet() {
    List list1 = ['a', 'b', 'c'];
getbustime() ;
print('sdl');
print(sdl);
// List list2 = y['times']['serviceDay'];
//print(y);
//
return TopSheet.show(
context: context,
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
ListView.builder(
//controller: sc,
shrinkWrap: true,
padding: const EdgeInsets.only(
top: 20, bottom: 20, right: 16, left: 16),
itemCount: sdl.length,
//100,
scrollDirection: Axis.vertical,
itemBuilder: (BuildContext context, int index) {
return ListTile(
title: new Text("${sdl[index].toString()}",
// "Start at Saturday",
style: TextStyle(
color: AppTheme.darkerText,
fontFamily: AppTheme.fontname,
fontWeight: FontWeight.w400,
fontSize: 20,
)));
}),
],
),
direction: TopSheetDirection.TOP,
);
}

yash1...@gmail.com

unread,
Mar 8, 2021, 10:44:13 AM3/8/21
to Flutter Development (flutter-dev)
Wrap Column with SingleChildScrollView. and give ListView.builder and SignleChilScrollView different ScrollControllers

Jitendra Kumar Kumawat

unread,
Mar 9, 2021, 12:35:12 AM3/9/21
to yash1...@gmail.com, Flutter Development (flutter-dev)
Hello, My Dear Friend! Please like and subscribe to this youtube channel! Here you learn : 1: Creating a Modern Promo Video in After Effect 2: Modern Mobile Application Development in Flutter  
3: Modern Web App with React-Hooks. 4: Modern Video Editing 5: Principle of Animation 6: Creating JavaScript Games. https://youtu.be/cWnMXlFL_Qs

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/b61c7365-f4b4-4806-aa5c-866aa7d86df1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages