1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Fix issue with large screens

This commit is contained in:
Pierre HUBERT 2021-03-13 11:48:33 +01:00
parent 99ae726c0a
commit d10b1d0d22

View File

@ -6,6 +6,7 @@ import 'package:comunic/utils/ui_utils.dart';
import 'package:file_picker/file_picker.dart';
import 'package:filesize/filesize.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:image_picker/image_picker.dart';
import 'package:mime/mime.dart';
@ -197,6 +198,9 @@ class _BottomSheetPickOption extends StatelessWidget {
@override
Widget build(BuildContext context) => Container(
height: 255,
child: Center(
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: 400),
child: ListView.builder(
itemCount: options.length,
itemBuilder: (c, i) => ListTile(
@ -205,5 +209,7 @@ class _BottomSheetPickOption extends StatelessWidget {
onTap: () => onOptionSelected(options[i].value),
),
),
),
),
);
}