Update to message box and logo app bar
- In message\_box.dart, added a reset to the form key after sending a message. - In logo\_app\_bar.dart, added a .then() to the Navigator.pushNamed() to call the init() method after navigating to the direct list.
This commit is contained in:
parent
0b9e57e654
commit
213e000aee
|
|
@ -129,8 +129,8 @@ class _TypingState extends State<_Typing> {
|
||||||
? DidvanIconButton(
|
? DidvanIconButton(
|
||||||
icon: DidvanIcons.send_solid,
|
icon: DidvanIcons.send_solid,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_formKey.currentState!.reset();
|
|
||||||
state.sendMessage();
|
state.sendMessage();
|
||||||
|
_formKey.currentState!.reset();
|
||||||
},
|
},
|
||||||
size: 32,
|
size: 32,
|
||||||
color: Theme.of(context).colorScheme.focusedBorder,
|
color: Theme.of(context).colorScheme.focusedBorder,
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,10 @@ class LogoAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||||
: DidvanIcons.message_solid,
|
: DidvanIcons.message_solid,
|
||||||
size: 32,
|
size: 32,
|
||||||
onPressed: () => Navigator.of(context)
|
onPressed: () => Navigator.of(context)
|
||||||
.pushNamed(Routes.directList),
|
.pushNamed(Routes.directList)
|
||||||
|
.then(
|
||||||
|
(value) => state.init(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (state.unread > 0)
|
if (state.unread > 0)
|
||||||
Positioned(
|
Positioned(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue