mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:58:56 +03:30
36 lines
875 B
Dart
Executable File
36 lines
875 B
Dart
Executable File
import 'package:flutter/material.dart';
|
|
|
|
import '../../../config/routes.dart';
|
|
|
|
class TestResultAddButton extends StatelessWidget {
|
|
const TestResultAddButton({
|
|
Key? key,
|
|
required double deviceBlockSize,
|
|
}) : _deviceBlockSize = deviceBlockSize,
|
|
super(key: key);
|
|
|
|
final double _deviceBlockSize;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
customBorder: CircleBorder(),
|
|
onTap: () {
|
|
Navigator.of(context).pushNamed(Routes.testResultAddScreen);
|
|
},
|
|
child: Container(
|
|
padding: EdgeInsets.all(5),
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: Colors.redAccent,
|
|
),
|
|
child: Icon(
|
|
Icons.add,
|
|
size: 10 * _deviceBlockSize,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|