You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
Dart
47 lines
1.0 KiB
Dart
|
1 month ago
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
||
|
|
|
||
|
|
import '../../../../res/app_colors.dart';
|
||
|
|
|
||
|
|
|
||
|
|
class BottomSheetIcon extends StatelessWidget {
|
||
|
|
String title;
|
||
|
|
Function() onTap;
|
||
|
|
final String imageProvider;
|
||
|
|
double? width;
|
||
|
|
double? height;
|
||
|
|
|
||
|
|
BottomSheetIcon(
|
||
|
|
{super.key,
|
||
|
|
required this.title,
|
||
|
|
required this.imageProvider,
|
||
|
|
required this.onTap,
|
||
|
|
this.height,
|
||
|
|
this.width});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return InkWell(
|
||
|
|
onTap: onTap,
|
||
|
|
child: Column(
|
||
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
|
children: [
|
||
|
|
SvgPicture.asset(
|
||
|
|
imageProvider,
|
||
|
|
width: width,
|
||
|
|
height: height,
|
||
|
|
),
|
||
|
|
const SizedBox(height: 3),
|
||
|
|
Text(
|
||
|
|
title,
|
||
|
|
style: Theme.of(context)
|
||
|
|
.textTheme
|
||
|
|
.labelSmall!
|
||
|
|
.copyWith(fontWeight: FontWeight.w500, color: AppColors.white),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|