Skip to content

Commit 86f9ca3

Browse files
fix: bug reporting
1 parent e3a75cb commit 86f9ca3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/lib/src/screens/bug_reporting.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class _BugReportingPageState extends State<BugReportingPage> {
6060
Instabug.addFileAttachmentWithURL(fileAttachment!.path, fileAttachment!.path
6161
.split('/')
6262
.last.substring(0));
63+
setState(() {
64+
65+
});
6366
}
6467
}
6568

@@ -464,6 +467,10 @@ class _BugReportingPageState extends State<BugReportingPage> {
464467
text: 'Set On Dismiss Callback',
465468
),
466469
const SectionTitle('Attachments'),
470+
if(fileAttachment!=null)
471+
Text(fileAttachment!.path
472+
.split('/')
473+
.last.substring(0) +" Attached"),
467474
InstabugButton(
468475
onPressed: addFileAttachment,
469476
text: 'Add file attachment',

0 commit comments

Comments
 (0)