mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
4f02435964
accessible theming/high contrast support
32 lines
1.0 KiB
Dart
32 lines
1.0 KiB
Dart
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) {
|
|
//final theme = Theme.of(sheetContext);
|
|
//final scale = theme.extension<ScaleScheme>()!;
|
|
|
|
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,
|
|
child: const Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
children: [
|
|
Text(
|
|
'Group and custom chat functionality is not available yet')
|
|
]).paddingAll(16))));
|
|
}
|