fix modal adding safearea
This commit is contained in:
@@ -787,16 +787,19 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
|
|
||||||
void _showUserInfoModal(User? user, bool isUserAdmin) {
|
void _showUserInfoModal(User? user, bool isUserAdmin) {
|
||||||
var channel = StreamChannel.of(context).channel;
|
var channel = StreamChannel.of(context).channel;
|
||||||
|
final color = StreamChatTheme.of(context).colorTheme.white;
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
backgroundColor: color,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return StreamChannel(
|
return SafeArea(
|
||||||
|
child: StreamChannel(
|
||||||
channel: channel,
|
channel: channel,
|
||||||
child: Material(
|
child: Material(
|
||||||
color: StreamChatTheme.of(context).colorTheme.white,
|
color: color,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
@@ -912,7 +915,8 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
_buildModalListTile(
|
_buildModalListTile(
|
||||||
context,
|
context,
|
||||||
StreamSvgIcon.userRemove(
|
StreamSvgIcon.userRemove(
|
||||||
color: StreamChatTheme.of(context).colorTheme.accentRed,
|
color:
|
||||||
|
StreamChatTheme.of(context).colorTheme.accentRed,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
),
|
),
|
||||||
'Remove From Group', () async {
|
'Remove From Group', () async {
|
||||||
@@ -920,7 +924,8 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
context,
|
context,
|
||||||
title: 'Remove member',
|
title: 'Remove member',
|
||||||
okText: 'REMOVE',
|
okText: 'REMOVE',
|
||||||
question: 'Are you sure you want to remove this member?',
|
question:
|
||||||
|
'Are you sure you want to remove this member?',
|
||||||
cancelText: 'CANCEL',
|
cancelText: 'CANCEL',
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -941,6 +946,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
|||||||
Reference in New Issue
Block a user