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.
40 lines
1.0 KiB
Dart
40 lines
1.0 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
class CustomBottomSheet extends StatelessWidget {
|
|
final List<Widget> children;
|
|
|
|
CustomBottomSheet({Key key, @required this.children}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: EdgeInsets.symmetric(vertical: 12.0),
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.only(
|
|
topLeft: Radius.circular(30.0),
|
|
topRight: Radius.circular(30.0),
|
|
),
|
|
),
|
|
child: SafeArea(
|
|
top: false,
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
Container(
|
|
decoration: BoxDecoration(
|
|
color: HexColor("#D5D5D5"),
|
|
borderRadius: BorderRadius.circular(3.0)),
|
|
width: 200,
|
|
height: 7.0,
|
|
),
|
|
...children
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|