mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 03:18:56 +03:30
93 lines
2.5 KiB
Dart
93 lines
2.5 KiB
Dart
import 'package:cssd/config/routes.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
// class TestResultFloatingButton extends StatelessWidget {
|
|
// const TestResultFloatingButton({
|
|
// Key key,
|
|
// @required double deviceBlockSize,
|
|
// }) : _deviceBlockSize = deviceBlockSize,
|
|
// super(key: key);
|
|
|
|
// final double _deviceBlockSize;
|
|
|
|
// @override
|
|
// Widget build(BuildContext context) {
|
|
// return InkWell(
|
|
// onTap: () {
|
|
// Navigator.of(context).popAndPushNamed(Routes.testResultAddScreen);
|
|
// },
|
|
// child: Container(
|
|
// padding: EdgeInsets.all(5),
|
|
// decoration: BoxDecoration(
|
|
// shape: BoxShape.circle,
|
|
// color: Color.fromRGBO(0, 190, 190, 1),
|
|
// ),
|
|
// child: Icon(
|
|
// Icons.add,
|
|
// size: 10 * _deviceBlockSize,
|
|
// color: Colors.white,
|
|
// ),
|
|
// ),
|
|
// );
|
|
// }
|
|
// }
|
|
|
|
class TestResultFloatingButton extends StatelessWidget {
|
|
const TestResultFloatingButton({
|
|
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.testScanScreen);
|
|
},
|
|
child: Container(
|
|
padding: EdgeInsets.all(2.5 * _deviceBlockSize),
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: Colors.black,
|
|
),
|
|
child: Icon(
|
|
FontAwesomeIcons.barcode,
|
|
size: 7.1 * _deviceBlockSize,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
),
|
|
SizedBox(
|
|
width: 2 * _deviceBlockSize,
|
|
),
|
|
InkWell(
|
|
customBorder: CircleBorder(),
|
|
onTap: () {
|
|
Navigator.of(context).pushReplacementNamed(Routes.testResultAddScreen);
|
|
},
|
|
child: Container(
|
|
padding: EdgeInsets.all(_deviceBlockSize),
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: Color.fromRGBO(0, 190, 190, 1),
|
|
),
|
|
child: Icon(
|
|
Icons.add,
|
|
size: 10 * _deviceBlockSize,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|