mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-19 01:03:45 +02:00
fix null pointer profile data
This commit is contained in:
parent
5b2757e19b
commit
7a8664d328
1 changed files with 23 additions and 21 deletions
|
@ -139,6 +139,7 @@ class _ProfileWrapperState extends State<ProfileWrapper> {
|
|||
}
|
||||
widgets.addAll(widget.extraWidgets ?? {});
|
||||
widgets.addAll(defaultItems);
|
||||
if (widget.user.profileData != null) {
|
||||
widgets.addAll(ItemList(
|
||||
Map.fromEntries(widget.user.profileData!.toMap().entries),
|
||||
widget.user.profileData!.mapWidget(
|
||||
|
@ -161,6 +162,7 @@ class _ProfileWrapperState extends State<ProfileWrapper> {
|
|||
itemBuilderOptions: widget.itemBuilderOptions,
|
||||
formKey: _formKey,
|
||||
).getItemList());
|
||||
}
|
||||
|
||||
var items = Wrap(
|
||||
alignment: widget.wrapViewOptions?.wrapAlignment ?? WrapAlignment.start,
|
||||
|
|
Loading…
Reference in a new issue