Search
 
SCRIPT & CODE EXAMPLE
 

DART

flutter listtile shape

ListTile(
              shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
              selected: true,
              selectedTileColor: Colors.grey[300],
              leading: FlutterLogo(),
              title: Text('ListTile'),
            ),
Comment

listtile shape flutter

Container(
      margin: const EdgeInsets.symmetric(vertical: 7.0, horizontal: 2.0),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(12.0),
        color: white,
        border: Border.all(
          color: blackTrans,
        ),
        boxShadow: [
          BoxShadow(
            color: Colors.purple[100]!,
            offset: const Offset(
              5.0,
              5.0,
            ),
            blurRadius: 10.0,
            spreadRadius: 2.0,
          ), //BoxShadow
          const BoxShadow(
            color: Colors.white,
            offset: Offset(0.0, 0.0),
            blurRadius: 0.0,
            spreadRadius: 0.0,
          ), //BoxShadow
        ],
      ),
      child: ListTile(
        onTap: () {
          print('${articles[index].titreArticle}');
        },
        title: Text('${articles[index].titreArticle}'),
        subtitle: Text(
          '${articles[index].description}',
          overflow: TextOverflow.ellipsis,
        ),
        isThreeLine: true,
        leading: CircleAvatar(
          radius: 22.sp,
          foregroundImage: NetworkImage('${articles[index].photo}'),
        ),
        trailing: Text('${articles[index].price} FCFA'),
      ),
    );
Comment

PREVIOUS NEXT
Code Example
Dart :: How to create a round CheckBox in Flutter 
Dart :: flutter debug tag 
Dart :: flutter validate email 
Dart :: how can i move floating action button to center flutter 
Dart :: rounded raisedbutton in flutter 
Dart :: change color of drawer icon flutter 
Dart :: materialstateproperty color 
Dart :: How to Create Number Inputfield in Flutter? 
Dart :: sleep in dart 
Dart :: text field make screen goes white flutter 
Dart :: hide keyboard flutter 
Dart :: two dots dart 
Dart :: flutter chip avatar radius increases 
Dart :: textfield style flutter 
Dart :: how to get screen size in flutter 
Dart :: flutter button with icon 
Dart :: dart card outline 
Dart :: close drawer flutter 
Dart :: dart jsonEncode 
Dart :: DartPad requires localStorage to be enabled 
Dart :: flutter list dynamic to list int 
Dart :: compute flutter 
Dart :: StateError (Bad state: No element) 
Dart :: Shadow box around a button Flutter 
Dart :: dart string to bytes 
Dart :: dart what is a closure 
Dart :: flutter int max value 
Dart :: flutter remove appbar leading padding 
Dart :: singleton classes in dart example 
Dart :: string to timeofday flutter 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =