mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:58:56 +03:30
63 lines
1.7 KiB
Dart
Executable File
63 lines
1.7 KiB
Dart
Executable File
import 'package:cssd/config/colors.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../../config/routes.dart';
|
|
|
|
class LabelFloatingButtons extends StatelessWidget {
|
|
const LabelFloatingButtons({
|
|
Key? key,
|
|
required double deviceBlockSize,
|
|
}) : _deviceBlockSize = deviceBlockSize,
|
|
super(key: key);
|
|
|
|
final double _deviceBlockSize;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
children: <Widget>[
|
|
InkWell(
|
|
customBorder: CircleBorder(),
|
|
onTap: () {
|
|
Navigator.of(context).pushNamed(Routes.labelScanScreen);
|
|
},
|
|
child: Container(
|
|
padding: EdgeInsets.all(10),
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: Colors.black,
|
|
),
|
|
child: Icon(
|
|
Icons.qr_code_scanner,
|
|
size: 7.1 * _deviceBlockSize,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
),
|
|
SizedBox(
|
|
width: 2 * _deviceBlockSize,
|
|
),
|
|
InkWell(
|
|
customBorder: CircleBorder(),
|
|
onTap: () {
|
|
Navigator.of(context).pushReplacementNamed(Routes.labelAddScreen);
|
|
},
|
|
child: Container(
|
|
padding: EdgeInsets.all(5),
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: kLightBlue,
|
|
),
|
|
child: Icon(
|
|
Icons.add,
|
|
size: 10 * _deviceBlockSize,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|