mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-11 00:38:56 +03:30
54 lines
1.3 KiB
Dart
Executable File
54 lines
1.3 KiB
Dart
Executable File
import 'package:flutter/material.dart';
|
|
|
|
class CancelTransferButton extends StatelessWidget {
|
|
const CancelTransferButton(
|
|
{Key? key,
|
|
required double deviceBlockSize,
|
|
required this.color,
|
|
required this.onTap})
|
|
: _deviceBlockSize = deviceBlockSize,
|
|
super(key: key);
|
|
|
|
final Color color;
|
|
final VoidCallback onTap;
|
|
final double _deviceBlockSize;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: onTap,
|
|
child: Container(
|
|
padding: EdgeInsets.symmetric(
|
|
horizontal: 5 * _deviceBlockSize,
|
|
vertical: 10,
|
|
),
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(7),
|
|
),
|
|
child: Align(
|
|
alignment: Alignment.center,
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Icon(
|
|
Icons.close,
|
|
color: color,
|
|
),
|
|
SizedBox(
|
|
width: 5.0,
|
|
),
|
|
Text(
|
|
'Let me think again',
|
|
style: TextStyle(
|
|
color: color,
|
|
fontSize: 4 * _deviceBlockSize,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|