mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 10:53:51 +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;
|
final ImagePickerContainerBuilder? imagePickerContainerBuilder;
|
||||||
|
|
||||||
/// The loading widget builder
|
/// The loading widget builder
|
||||||
final Widget? Function(BuildContext context) loadingWidgetBuilder;
|
final Widget Function(BuildContext context) loadingWidgetBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The button builder
|
/// The button builder
|
||||||
|
|
|
@ -323,9 +323,9 @@ class _ChatBody extends HookWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (showIndicator.value && options.enableLoadingIndicator)
|
if (showIndicator.value && options.enableLoadingIndicator) ...[
|
||||||
options.builders.loadingWidgetBuilder(context) ??
|
options.builders.loadingWidgetBuilder(context),
|
||||||
const SizedBox.shrink(),
|
],
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue