mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Update conversations list screen
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
|
||||
import 'package:comunic/helpers/preferences_helper.dart';
|
||||
import 'package:comunic/main.dart';
|
||||
import 'package:comunic/ui/routes/full_screen_image.dart';
|
||||
import 'package:comunic/ui/widgets/dialogs/auto_sized_dialog_content_widget.dart';
|
||||
import 'package:comunic/ui/widgets/dialogs/cancel_dialog_button.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_emoji/flutter_emoji.dart';
|
||||
@ -220,6 +222,20 @@ Future<bool> showConfirmDialog({
|
||||
return result != null && result;
|
||||
}
|
||||
|
||||
/// Show a simple alert dialog
|
||||
Future<void> showAlert({
|
||||
@required BuildContext context,
|
||||
@required String message,
|
||||
String title,
|
||||
}) async =>
|
||||
await showDialog(
|
||||
context: context,
|
||||
builder: (c) => AlertDialog(
|
||||
title: title == null ? null : Text(title),
|
||||
content: Text(message),
|
||||
actions: [CancelDialogButton()],
|
||||
));
|
||||
|
||||
/// Smart [InputCounterWidgetBuilder] that show text limit only when some
|
||||
/// text has already been entered by the user
|
||||
Widget smartInputCounterWidgetBuilder(
|
||||
|
Reference in New Issue
Block a user