|
|
|
|
@ -6,7 +6,10 @@ import 'package:qr_code_scanner/qr_code_scanner.dart';
|
|
|
|
|
import 'package:test_sa/extensions/context_extension.dart';
|
|
|
|
|
import 'package:test_sa/extensions/int_extensions.dart';
|
|
|
|
|
import 'package:test_sa/extensions/text_extensions.dart';
|
|
|
|
|
import 'package:test_sa/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:test_sa/models/device/asset.dart';
|
|
|
|
|
import 'package:test_sa/modules/cm_module/views/components/action_button/footer_action_button.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
|
|
|
|
|
import '../../../controllers/providers/api/devices_provider.dart';
|
|
|
|
|
import '../../../models/device/asset_search.dart';
|
|
|
|
|
@ -69,8 +72,10 @@ class _AssetScanQrState extends State<AssetScanQr> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
_devicesProvider = Provider.of<AssetProvider>(context);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: Stack(
|
|
|
|
|
appBar: DefaultAppBar(title: widget.title),
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(
|
|
|
|
|
children: [
|
|
|
|
|
QRView(
|
|
|
|
|
key: qrKey,
|
|
|
|
|
@ -102,24 +107,35 @@ class _AssetScanQrState extends State<AssetScanQr> {
|
|
|
|
|
fit: BoxFit.fitHeight,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 60.toScreenHeight, child: CustomAppBar(title: widget.title)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
height: 82.toScreenHeight,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
height: 50.toScreenHeight,
|
|
|
|
|
width: 358.toScreenWidth,
|
|
|
|
|
).expanded,
|
|
|
|
|
FooterActionButton.footerContainer(
|
|
|
|
|
context: context,
|
|
|
|
|
child: AppFilledButton(
|
|
|
|
|
label: context.translation.pickManually,
|
|
|
|
|
onPressed: _pickManually,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
));
|
|
|
|
|
// bottomSheet:
|
|
|
|
|
// 16.height,
|
|
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
// height: 82.toScreenHeight,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// width: MediaQuery.of(context).size.width,
|
|
|
|
|
// child: Center(
|
|
|
|
|
// child: SizedBox(
|
|
|
|
|
// height: 50.toScreenHeight,
|
|
|
|
|
// width: 358.toScreenWidth,
|
|
|
|
|
// child: AppFilledButton(
|
|
|
|
|
// label: context.translation.pickManually,
|
|
|
|
|
// onPressed: _pickManually,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|