fix: small ui change
This commit is contained in:
parent
618764f513
commit
d16d1e2778
2 changed files with 24 additions and 13 deletions
|
|
@ -28,7 +28,7 @@ class SellViewModel extends ChangeNotifier {
|
|||
*/
|
||||
|
||||
final List<BookInstance> _scannedBooks = [];
|
||||
get scannedBooks => _scannedBooks;
|
||||
List<BookInstance> get scannedBooks => _scannedBooks;
|
||||
void scanBook(BarcodeCapture barcode) {
|
||||
final addedBook = BookInstance(
|
||||
balId: 5,
|
||||
|
|
|
|||
|
|
@ -62,10 +62,19 @@ class _SellPageState extends State<SellPage> {
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
SizedBox(height: 6),
|
||||
Center(
|
||||
child: Text(
|
||||
"Livres dans la vente actuelle",
|
||||
style: TextStyle(fontSize: 20),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 15),
|
||||
Expanded(
|
||||
child: ListView(
|
||||
children: [
|
||||
(widget.viewModel.scannedBooks.isEmpty)
|
||||
? Center(child: Text("Aucun"))
|
||||
: SizedBox(),
|
||||
for (BookInstance bookInstance
|
||||
in widget.viewModel.scannedBooks)
|
||||
Padding(
|
||||
|
|
@ -99,9 +108,10 @@ class _SellPageState extends State<SellPage> {
|
|||
),
|
||||
),
|
||||
SizedBox(height: 40),
|
||||
Text("Somme minimum requise : 20€"),
|
||||
SizedBox(
|
||||
width: 400,
|
||||
Text("Montant minimum à payer : 20€"),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 60.0),
|
||||
child: SizedBox(
|
||||
child: TextField(
|
||||
decoration: InputDecoration(
|
||||
labelText: "Argent reçu",
|
||||
|
|
@ -113,6 +123,7 @@ class _SellPageState extends State<SellPage> {
|
|||
keyboardType: TextInputType.number,
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 10),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
|
|
|
|||
Reference in a new issue