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:
parent
99ae726c0a
commit
d10b1d0d22
@ -6,6 +6,7 @@ import 'package:comunic/utils/ui_utils.dart';
|
|||||||
import 'package:file_picker/file_picker.dart';
|
import 'package:file_picker/file_picker.dart';
|
||||||
import 'package:filesize/filesize.dart';
|
import 'package:filesize/filesize.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/rendering.dart';
|
||||||
import 'package:image_picker/image_picker.dart';
|
import 'package:image_picker/image_picker.dart';
|
||||||
import 'package:mime/mime.dart';
|
import 'package:mime/mime.dart';
|
||||||
|
|
||||||
@ -197,12 +198,17 @@ class _BottomSheetPickOption extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => Container(
|
Widget build(BuildContext context) => Container(
|
||||||
height: 255,
|
height: 255,
|
||||||
child: ListView.builder(
|
child: Center(
|
||||||
itemCount: options.length,
|
child: ConstrainedBox(
|
||||||
itemBuilder: (c, i) => ListTile(
|
constraints: BoxConstraints(maxWidth: 400),
|
||||||
leading: Icon(options[i].icon),
|
child: ListView.builder(
|
||||||
title: Text(options[i].label),
|
itemCount: options.length,
|
||||||
onTap: () => onOptionSelected(options[i].value),
|
itemBuilder: (c, i) => ListTile(
|
||||||
|
leading: Icon(options[i].icon),
|
||||||
|
title: Text(options[i].label),
|
||||||
|
onTap: () => onOptionSelected(options[i].value),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user