46 lines
1.1 KiB
Dart
46 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:mobile_scanner/mobile_scanner.dart';
|
|
import 'package:seshat/ui/sell_page/view_model/sell_view_model.dart';
|
|
|
|
class ManualScanPopup extends StatelessWidget {
|
|
const ManualScanPopup({
|
|
super.key,
|
|
required this.viewModel,
|
|
required this.controller,
|
|
});
|
|
|
|
final SellViewModel viewModel;
|
|
final MobileScannerController controller;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AlertDialog(
|
|
title: Text("Recherche manuelle"),
|
|
content: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
TextField(
|
|
decoration: InputDecoration(
|
|
labelText: "Rechercher",
|
|
suffixIcon: IconButton(
|
|
onPressed: () {},
|
|
icon: Icon(Icons.arrow_forward),
|
|
),
|
|
border: OutlineInputBorder(),
|
|
),
|
|
),
|
|
SizedBox(height: 200),
|
|
],
|
|
),
|
|
actions: [
|
|
TextButton(
|
|
onPressed: () {
|
|
controller.start();
|
|
Navigator.of(context).pop();
|
|
},
|
|
child: Text("Annuler"),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|