forked from SelfPrivacy/selfprivacy.org.app
42 lines
1.1 KiB
Dart
42 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:selfprivacy/config/brand_colors.dart';
|
|
|
|
class BrandModalSheet extends StatelessWidget {
|
|
const BrandModalSheet({
|
|
Key key,
|
|
this.child,
|
|
}) : super(key: key);
|
|
|
|
final Widget child;
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SingleChildScrollView(
|
|
child: Column(
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsets.only(top: 32, bottom: 6),
|
|
child: Container(
|
|
height: 4,
|
|
width: 30,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(2),
|
|
color: Color(0xFFE3E3E3).withOpacity(0.65),
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
constraints: BoxConstraints(minHeight: 400),
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
|
|
color: BrandColors.white,
|
|
),
|
|
width: double.infinity,
|
|
padding: EdgeInsets.symmetric(vertical: 40, horizontal: 15),
|
|
child: child,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|