mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
45 lines
1.3 KiB
Dart
45 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AddSpaceButton extends StatelessWidget {
|
|
final VoidCallback onTap;
|
|
|
|
const AddSpaceButton({super.key, required this.onTap});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GestureDetector(
|
|
onTap: onTap, // Handle tap event
|
|
child: Container(
|
|
width: 120, // Width of the button
|
|
height: 60, // Height of the button
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.circular(20), // Rounded corners
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: Colors.grey.withOpacity(0.5), // Shadow color
|
|
spreadRadius: 5, // Spread radius of the shadow
|
|
blurRadius: 7, // Blur effect
|
|
offset: const Offset(0, 3), // Shadow position
|
|
),
|
|
],
|
|
),
|
|
child: Center(
|
|
child: Container(
|
|
width: 40, // Size of the inner circle
|
|
height: 40,
|
|
decoration: BoxDecoration(
|
|
color: const Color(0xFFF5F6F7), // Light gray background
|
|
shape: BoxShape.circle, // Circular shape for the icon container
|
|
),
|
|
child: const Icon(
|
|
Icons.add, // Add icon
|
|
color: Colors.blue, // Icon color
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|