mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
fix: make the loadingWidgetBuilder not nullable
This commit is contained in:
parent
63575ac8fe
commit
f4c02829f5
2 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ class ChatBuilders {
|
|||
final ImagePickerContainerBuilder? imagePickerContainerBuilder;
|
||||
|
||||
/// The loading widget builder
|
||||
final Widget? Function(BuildContext context) loadingWidgetBuilder;
|
||||
final Widget Function(BuildContext context) loadingWidgetBuilder;
|
||||
}
|
||||
|
||||
/// The button builder
|
||||
|
|
|
@ -323,9 +323,9 @@ class _ChatBody extends HookWidget {
|
|||
),
|
||||
],
|
||||
),
|
||||
if (showIndicator.value && options.enableLoadingIndicator)
|
||||
options.builders.loadingWidgetBuilder(context) ??
|
||||
const SizedBox.shrink(),
|
||||
if (showIndicator.value && options.enableLoadingIndicator) ...[
|
||||
options.builders.loadingWidgetBuilder(context),
|
||||
],
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue