2024-04-10 16:13:08 -04:00
|
|
|
import 'package:awesome_extensions/awesome_extensions.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_translate/flutter_translate.dart';
|
|
|
|
|
|
|
|
import '../../theme/theme.dart';
|
|
|
|
|
|
|
|
Widget newChatBottomSheetBuilder(
|
|
|
|
BuildContext sheetContext, BuildContext context) {
|
2024-04-12 20:55:05 -04:00
|
|
|
//final theme = Theme.of(sheetContext);
|
|
|
|
//final scale = theme.extension<ScaleScheme>()!;
|
2024-04-10 16:13:08 -04:00
|
|
|
|
|
|
|
return KeyboardListener(
|
|
|
|
focusNode: FocusNode(),
|
|
|
|
onKeyEvent: (ke) {
|
|
|
|
if (ke.logicalKey == LogicalKeyboardKey.escape) {
|
|
|
|
Navigator.pop(sheetContext);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: styledBottomSheet(
|
|
|
|
context: context,
|
|
|
|
title: translate('add_chat_sheet.new_chat'),
|
|
|
|
child: SizedBox(
|
|
|
|
height: 160,
|
2024-04-12 20:55:05 -04:00
|
|
|
child: const Row(
|
2024-04-10 16:13:08 -04:00
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Group and custom chat functionality is not available yet')
|
|
|
|
]).paddingAll(16))));
|
|
|
|
}
|