You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aku_new_community/lib/widget/dialog/bee_custom_dialog.dart

66 lines
1.9 KiB

import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:flutter/material.dart';
class BeeCustomDialog extends StatelessWidget {
final List<Widget> actions;
final Widget content;
const BeeCustomDialog(
{Key? key, required this.actions, required this.content})
: super(key: key);
@override
Widget build(BuildContext context) {
return Center(
child: Container(
width: 600.w,
height: 700.w,
clipBehavior: Clip.antiAliasWithSaveLayer,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(24.w),
),
child: Material(
child: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
stops: [
0,
0.3,
],
colors: [
Color(0x33FBE541),
Colors.white,
])),
child: Column(
children: [
content,
Spacer(),
BeeDivider.horizontal(),
ConstrainedBox(
constraints: BoxConstraints(maxHeight: 100.w),
child: Row(
children: actions
.map((e) => Expanded(child: e))
.toList()
.sepWidget(
separate: Container(
width: 2.w,
height: double.infinity,
color: Color(0xFFF0F0F0),
),
),
),
),
],
),
),
),
),
);
}
}