Added message processing indicator
This commit is contained in:
parent
fa1f4a1d01
commit
399f0d9cce
|
@ -214,7 +214,11 @@ class _MainAppState extends State<MainApp> {
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.restart_alt_rounded))
|
icon: const Icon(Icons.restart_alt_rounded))
|
||||||
],
|
],
|
||||||
),
|
bottom: PreferredSize(
|
||||||
|
preferredSize: const Size.fromHeight(1),
|
||||||
|
child: (!chatAllowed && model != null)
|
||||||
|
? const LinearProgressIndicator()
|
||||||
|
: const SizedBox.shrink())),
|
||||||
body: SizedBox.expand(
|
body: SizedBox.expand(
|
||||||
child: Chat(
|
child: Chat(
|
||||||
messages: messages,
|
messages: messages,
|
||||||
|
@ -478,8 +482,7 @@ class _MainAppState extends State<MainApp> {
|
||||||
? 0
|
? 0
|
||||||
: 8))
|
: 8))
|
||||||
: DarkChatTheme(
|
: DarkChatTheme(
|
||||||
backgroundColor:
|
backgroundColor: (themeDark ?? ThemeData.dark()).colorScheme.surface,
|
||||||
(themeDark ?? ThemeData.dark()).colorScheme.surface,
|
|
||||||
primaryColor: (themeDark ?? ThemeData.dark()).colorScheme.primary.withAlpha(40),
|
primaryColor: (themeDark ?? ThemeData.dark()).colorScheme.primary.withAlpha(40),
|
||||||
attachmentButtonIcon: const Icon(Icons.add_a_photo_rounded),
|
attachmentButtonIcon: const Icon(Icons.add_a_photo_rounded),
|
||||||
sendButtonIcon: const Icon(Icons.send_rounded),
|
sendButtonIcon: const Icon(Icons.send_rounded),
|
||||||
|
|
Loading…
Reference in New Issue