This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:barcode_scan/barcode_scan.dart'; | |
import 'package:barcode_search/models/product.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
class ProductSearch extends SearchDelegate<String> { | |
Future _scanBarcode(BuildContext context) async { | |
String barcodeScanRes = await FlutterBarcodeScanner.scanBarcode( | |
"#ff6666", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:easy_localization/easy_localization.dart'; | |
import 'package:flutter/material.dart'; | |
class Home extends StatefulWidget { | |
@override | |
_HomeState createState() => _HomeState(); | |
} | |
class _HomeState extends State<Home> { | |
bool isHindi = false; |