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.
52 lines
1.4 KiB
Dart
52 lines
1.4 KiB
Dart
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
import '../../config/config.dart';
|
|
|
|
class CustomBottomSheetContainer extends StatelessWidget {
|
|
final Function onTap;
|
|
final String label;
|
|
|
|
double headerHeight = SizeConfig.heightMultiplier! * 12;
|
|
|
|
CustomBottomSheetContainer({Key key, this.onTap, this.label}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.all(
|
|
Radius.circular(0.0),
|
|
),
|
|
border: Border.all(color: HexColor('#EFEFEF'), width: 1),
|
|
),
|
|
height: headerHeight,
|
|
width: double.infinity,
|
|
child: Column(
|
|
children: [
|
|
Container(
|
|
margin: EdgeInsets.only(
|
|
top: headerHeight * (SizeConfig.isWidthLarge ? 0.3 : 0.2)),
|
|
child: FractionallySizedBox(
|
|
widthFactor: .80,
|
|
child: Center(
|
|
child: AppButton(
|
|
title: label,
|
|
color: AppGlobal.appGreenColor,
|
|
onPressed: onTap,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 5,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|