More customize options are back

This commit is contained in:
2025-05-30 01:23:24 +08:00
parent b0c1981c9a
commit afe1c700eb
9 changed files with 252 additions and 47 deletions

View File

@ -1,9 +1,7 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:auto_route/auto_route.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
@ -733,7 +731,7 @@ class _ChatInput extends ConsumerWidget {
return;
}
final enterToSend = ref.read(appSettingsProvider).enterToSend;
final enterToSend = ref.read(appSettingsNotifierProvider).enterToSend;
final isEnter = event.logicalKey == LogicalKeyboardKey.enter;
if (isEnter) {
@ -760,7 +758,7 @@ class _ChatInput extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final enterToSend = ref.watch(appSettingsProvider).enterToSend;
final enterToSend = ref.watch(appSettingsNotifierProvider).enterToSend;
return Material(
elevation: 8,