This repository has been archived on 2025-08-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Seshat/lib/ui/sell_page/widgets/manual_scan_popup.dart
2025-08-14 13:47:44 +02:00

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"),
),
],
);
}
}