fix profile
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/market/market_editor.dart';
|
||||
import 'package:fcs/pages/market/model/market_model.dart';
|
||||
import 'package:fcs/pages/main/util.dart';
|
||||
import 'package:fcs/pages/widgets/barcode_scanner.dart';
|
||||
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
||||
import 'package:fcs/pages/widgets/input_text.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
@@ -163,13 +164,8 @@ class _TrackingIDPageState extends State<TrackingIDPage> {
|
||||
}
|
||||
|
||||
try {
|
||||
String barcode = await BarcodeScanner.scan();
|
||||
String barcode = await scanBarcode();
|
||||
if (barcode != null) {
|
||||
String gs = String.fromCharCode(29);
|
||||
if (barcode.contains(gs)) {
|
||||
var codes = barcode.split(gs);
|
||||
barcode = codes.length >= 2 ? codes[1] : barcode;
|
||||
}
|
||||
setState(() {
|
||||
_transcationIDCtl.text = barcode;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user