You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EasyDialog(
title: Text("Basic Easy Dialog Title"),
description: Text("This is a basic dialog")).show(context);
Broken Code:
EasyDialog(
title: Text("Basic Easy Dialog Title"),
description: Text("This is a basic dialog"),
contentList:[ Text("this is the only message that will now show in the dialog box"),],).show(context);
This code will show the text inside contentList and will not show the text inside title or description.
I was able to fix the problem by making the following changes in the file "easy_dialog.dart":
Change (line #76):
if (contentList != null) {
_contentList = contentList as List<Widget>;
}
to:
if (contentList != null) {
// _contentList = contentList as List<Widget>;
contentList?.forEach((element) {
insertByIndex(EdgeInsets.zero, element, _contentList.length);
});
Thank you for providing the easy_dialog package and for reviewing this issue.
Best regards,
Mike
The text was updated successfully, but these errors were encountered:
Version: easy_dialog: ^1.1.0
working code:
Broken Code:
This code will show the text inside contentList and will not show the text inside title or description.
I was able to fix the problem by making the following changes in the file "easy_dialog.dart":
Change (line #76):
to:
Thank you for providing the easy_dialog package and for reviewing this issue.
Best regards,
Mike
The text was updated successfully, but these errors were encountered: