chore: Localized reply exception
This commit is contained in:
parent
e15ba4f6bc
commit
65fee254a8
1 changed files with 5 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:fluffychat/utils/localized_exception_extension.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:emoji_picker_flutter/emoji_picker_flutter.dart';
|
import 'package:emoji_picker_flutter/emoji_picker_flutter.dart';
|
||||||
|
|
@ -75,12 +76,13 @@ class StoryPageController extends State<StoryPage> {
|
||||||
replyController.clear();
|
replyController.clear();
|
||||||
replyFocus.unfocus();
|
replyFocus.unfocus();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(content: Text(L10n.of(context)!.replyHasBeenSent)),
|
||||||
content: Text(L10n.of(context)!.replyHasBeenSent),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logs().w('Unable to reply to story', e, s);
|
Logs().w('Unable to reply to story', e, s);
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
SnackBar(content: Text(e.toLocalizedString(context))),
|
||||||
|
);
|
||||||
} finally {
|
} finally {
|
||||||
setState(() {
|
setState(() {
|
||||||
replyLoading = false;
|
replyLoading = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue