improving ui elements
This commit is contained in:
@@ -221,18 +221,6 @@ class _HomeScreenState extends State<HomeScreen>
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
context.go('/history');
|
||||
},
|
||||
child: Text(
|
||||
'View All',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
@@ -250,13 +238,26 @@ class _HomeScreenState extends State<HomeScreen>
|
||||
],
|
||||
),
|
||||
if (homeController.model.transactions.isNotEmpty)
|
||||
ListView(
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
Column(
|
||||
children: [
|
||||
...homeController.model.transactions.map(
|
||||
(e) => _buildTransactionItem(e, context),
|
||||
ListView(
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
children: [
|
||||
...homeController.model.transactions.map(
|
||||
(e) => _buildTransactionItem(e, context),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 10),
|
||||
if (homeController.model.transactions.length >
|
||||
2)
|
||||
OutlinedButton(
|
||||
child: Text('View All'),
|
||||
onPressed: () {
|
||||
context.go('/history');
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user