ListTile
1import 'package:flutter/material.dart';
class RowWithCardWidget extends StatefulWidget {
static String route = '/RowWithCardWidget';
@override
_RowWithCardWidgetState createState() => _RowWithCardWidgetState();
}
class _RowWithCardWidgetState extends State<RowWithCardWidget> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Card(
child: ListTile(
leading: Icon(
Icons.flight,
size: 40,
color: Colors.lightBlue.withOpacity(0.3),
),
title: Text('Airplane'),
subtitle: Text('Very Cool'),
trailing: Text(
'20%',
style: TextStyle(color: Colors.lightBlue),
),
onTap: () {
print('tapped');
},
),
),
);
}
}
ListTile
Reviewed by Admin
on
1:22 AM
Rating:
No comments: