flutter card
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(40), // if you need this
side: BorderSide(
color: Colors.grey.withOpacity(0.2),
width: 1,
),
),
child: Container(
color: Colors.white,
width: 200,
height: 200,
),
)
4.4
5
Container(
width: 300,
height: 100,
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15.0),
),
color: Colors.lightBlueAccent.withOpacity(0.5),
),
);
Thank you!
5
0
4.5
6
Card(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const ListTile(
leading: Icon(Icons.check),
title: Text('TITLE'),
subtitle: Text('SUBTITLE'),
),
ButtonBar(
children: <Widget>[
FlatButton(
child: const Text('BTN1'),
onPressed: () {/* ... */},
),
FlatButton(
child: const Text('BTN2'),
onPressed: () {/* ... */},
),
],
),
],
),
);
Thank you!
6
0
Are there any code examples left?
New code examples in category Dart
-
Dart 2022-03-27 22:05:31 how to create a toast in flutter
-
Dart 2022-03-27 21:10:09 dart string empty or null
-
Dart 2022-03-27 16:20:02 golang radom array
-
Dart 2022-03-25 08:00:34 flutter outline button overlay
-
Dart 2022-03-24 23:50:20 sort list dart
-
Dart 2022-03-24 21:00:01 how to obfuscate flutter code
-
Dart 2022-03-22 13:45:18 box decoration s flutter
-
Dart 2022-03-22 07:20:04 New Year's Eve
-
Dart 2022-03-17 17:10:05 string to int in dart
-
Dart 2022-03-17 12:40:14 dart how to tell if an object is an instance of a class