38 lines
777 B
Dart
38 lines
777 B
Dart
import 'dart:io';
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class AddByBarcodeView extends StatefulWidget {
|
|
final String? title;
|
|
final int? transactionId;
|
|
|
|
const AddByBarcodeView({
|
|
Key? key,
|
|
this.title,
|
|
this.transactionId,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
_AddByBarcodeViewState createState() => _AddByBarcodeViewState();
|
|
}
|
|
|
|
class _AddByBarcodeViewState extends State<AddByBarcodeView> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
print('barcode = image-${widget.transactionId}');
|
|
return Container(
|
|
child: Center(
|
|
child: Hero(
|
|
tag: 'text',
|
|
child: Text(widget.title ?? '')),
|
|
),
|
|
);
|
|
}
|
|
}
|