mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 14:08:55 +03:30
beta commit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user