Flutter – How to add the lines on the List tile
How do I add the three lines on the list tile in flutter? I imagined using a stack, like so to get the desired effect Card ⬇️ Stack ⬇️ [Card with three lines, ListTile] Is there a better way to…
How do I add the three lines on the list tile in flutter? I imagined using a stack, like so to get the desired effect Card ⬇️ Stack ⬇️ [Card with three lines, ListTile] Is there a better way to…
Widget generateReorderableList() { return Column( children: [ Stack( children: [ SizedBox( width: double.infinity, height: 600, //A modifier child: ReorderableListView( header: Column( children: [ Row( children: [ for (final item in headersList) Container( padding: const EdgeInsets.all(19.0), child: DefaultTextStyle( style: const TextStyle(…
It's about a Flutter web app I have an FirebaseAnimatedList with ListTiles. When hovering over a ListTile an Overlay (a Row with 4 clickable IconButtons) attached to this ListTile shall be shown in the upper right corner of the ListTile.…
I tried changing the background color of Appbar using onTap in ListTile ListTile( title: const Text('Black'), leading: const Icon(Icons.label), onTap: () { setState(() { AppBar( backgroundColor: Colors.black, ); }); // Navigator.pop(context); }, ), this is my code, but it's doesn't…
I have a listTile builder that returns this listTile. The color of the listTile, white, is overwritten by its parent. How do I stop this? return ListTile( key: Key(index.toString()), tileColor: Colors.white, title: Text(widget.userExercises[index].name), subtitle: Text("${widget.userExercises[index].reps} Reps"), trailing: Text("${widget.userExercises[index].sets} Sets"), onTap:…
I was able to add rounded corners but could not figure out how to reduce the default padding and make it a round button. SlidableAction( onPressed: (context) { // do something }, autoClose: true, // I need this functionality icon:…
I'm trying to create a ListView and would only want the first item to be padded. Here is the code: Expanded( child: ListView.builder( padding: EdgeInsets.all(16), itemCount: card.length, itemBuilder: (context, index) { if (index == 0) { return MyCard.buildRecordCard( card[index], context);…
I can't seem to figure out how to center my CircleAvatar inside the trailing component of my ListTile. Here is my code: static Widget buildRecordCard(MyCard card, BuildContext context) { var dateFormat = DateFormat('MM/dd/yyyy'); return Column( children: [ ListTile( shape: RoundedRectangleBorder(borderRadius:…
To begin with, i have the CustomExpansionPanelList widget as a parent. Then a list of children of the CustomExpansionPanel. In the headerBuilder is the ListTile, which has text and an icon on trailing. The problem: the onPressed event is hard…
I'm working on a flutter app that is getting a JSON from an API. Then I'm parsing the JSON and building a List Tile. When I try to run the code, I'm getting this error: lib/screens/screen4.dart:112:23: Error: Too many positional…