Skip to content

Commit

Permalink
fuelprice page update
Browse files Browse the repository at this point in the history
  • Loading branch information
MdAshrafUllah committed Jan 17, 2023
1 parent 9bd807f commit d75678b
Showing 1 changed file with 69 additions and 4 deletions.
73 changes: 69 additions & 4 deletions lib/fuelprice.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,75 @@ class fuelprice extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: Column(
children: [Container()],
)),
debugShowCheckedModeBanner: false,
home: Scaffold(
body: ListView(children: <Widget>[
SizedBox(height: 100),
Center(
child: Text(
'Per Liter Fuel Price',
style: TextStyle(
color: Colors.grey, fontSize: 25, fontWeight: FontWeight.bold),
)),
SizedBox(height: 25),
DataTable(
decoration: BoxDecoration(color: Colors.green[50]),
columns: [
DataColumn(
label: Text('No',
style: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold))),
DataColumn(
label: Text('Fuel',
style: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold))),
DataColumn(
label: Text('Prices',
style: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold))),
],
rows: [
DataRow(cells: [
DataCell(Text('1')),
DataCell(Text('Diesel')),
DataCell(Text('114 TK')),
]),
DataRow(cells: [
DataCell(Text('2')),
DataCell(Text('Petrol')),
DataCell(Text('130 TK')),
]),
DataRow(cells: [
DataCell(Text('3')),
DataCell(Text('Octane')),
DataCell(Text('130 TK')),
]),
DataRow(cells: [
DataCell(Text('4')),
DataCell(Text('LPG')),
DataCell(Text('78 TK')),
]),
],
),
SizedBox(height: 25),
Container(
padding: EdgeInsets.all(10),
child: IconButton(
icon: Icon(Icons.arrow_circle_left),
iconSize: 50,
color: Colors.red[900],
onPressed: () {
Navigator.pop(context); // handle button press
},
),
),
])),
);
}
}

0 comments on commit d75678b

Please sign in to comment.