diff --git a/lib/core/widget/message_widget.dart b/lib/core/widget/message_widget.dart index 09ef087..e1d1949 100644 --- a/lib/core/widget/message_widget.dart +++ b/lib/core/widget/message_widget.dart @@ -766,7 +766,7 @@ class AmityMessageContentWidget extends StatelessWidget { onPressed: () {}, icon: const Icon(Icons.attach_file_rounded), label: Text( - data.file!.getFilePath!.split('/').last, + data.file?.getFilePath?.split('/').last ?? data.file?.getUrl ?? "", ), ) : Container( diff --git a/pubspec.yaml b/pubspec.yaml index f4b8c9e..8ab528c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_social_sample_app description: Demonstrates how to use the flutter_application_1 plugin. -version: 1.1.46+61 +version: 1.1.47+62