diff --git a/lib/pages/expense.dart b/lib/pages/expense.dart index f4f023a..b22d02d 100644 --- a/lib/pages/expense.dart +++ b/lib/pages/expense.dart @@ -43,31 +43,22 @@ class _ExpensePageState extends State { child: Dismissible( key: Key(curr.toString()), background: Container( - color: Colors.blue, + color: Colors.red, child: Row( - mainAxisSize: MainAxisSize.max, + mainAxisAlignment: MainAxisAlignment.start, children: [ - Container( - color: Colors.red, - child: Row( - mainAxisSize: MainAxisSize.max, - children: [ - Icon(Icons.delete), - Text("Delete"), - ], - ), - ), - Spacer(), - Container( - color: Colors.yellow, - child: Row( - mainAxisSize: MainAxisSize.max, - children: [ - Text("Edit"), - Icon(Icons.edit), - ], - ), - ), + Icon(Icons.delete), + Text("Delete"), + ], + ), + ), + secondaryBackground: Container( + color: Colors.yellow, + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Text("Edit"), + Icon(Icons.edit), ], ), ),