Scroll details dialogs whose content is taller than the app
Chat details was cut off at 1280x800 (found by run 305's UI review).
This commit is contained in:
@@ -57,7 +57,8 @@ Future<T?> showAppChoiceMenu<T>(
|
||||
|
||||
/// Shows richer content (a chat's details, a file's details) built by
|
||||
/// [builder]: a dialog on a wide app, a bottom sheet on a phone, on the root
|
||||
/// navigator either way.
|
||||
/// navigator either way. The content sizes itself (a `Column` with
|
||||
/// `MainAxisSize.min`); the dialog scrolls it when it is taller than the app.
|
||||
Future<T?> showAppDetails<T>(
|
||||
BuildContext context, {
|
||||
required WidgetBuilder builder,
|
||||
@@ -83,7 +84,8 @@ Future<T?> showAppDetails<T>(
|
||||
maxWidth: maxWidth,
|
||||
maxHeight: MediaQuery.sizeOf(dialog).height * 0.85,
|
||||
),
|
||||
child: Padding(
|
||||
// Content taller than the app scrolls inside the dialog.
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.only(top: 16),
|
||||
child: builder(dialog),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user