diff --git a/CHANGELOG.md b/CHANGELOG.md index 60022564..5aa87863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.0 + +- [DSExpandedImage] Fixed image layout when expanded. + ## 0.0.99 - [DSTicketMessage] Added ```contentStatus``` property. diff --git a/lib/src/widgets/utils/ds_expanded_image.widget.dart b/lib/src/widgets/utils/ds_expanded_image.widget.dart index 51abf4bf..4a14c6aa 100644 --- a/lib/src/widgets/utils/ds_expanded_image.widget.dart +++ b/lib/src/widgets/utils/ds_expanded_image.widget.dart @@ -129,7 +129,6 @@ class DSExpandedImage extends StatelessWidget { child: Obx( () => Scaffold( backgroundColor: Colors.black, - extendBodyBehindAppBar: true, appBar: DSHeader( showBorder: false, visible: _isAppBarVisible.value, @@ -143,21 +142,23 @@ class DSExpandedImage extends StatelessWidget { body: GestureDetector( onTap: () => _isAppBarVisible.value = !_isAppBarVisible.value, child: Container( - padding: const EdgeInsets.all(8.0), - child: PinchZoom( - child: url.startsWith('http') - ? DSCachedNetworkImageView( - url: url, - fit: BoxFit.contain, - placeholder: (context, _) => _buildLoading(), - align: align, - style: style, - shouldAuthenticate: shouldAuthenticate, - ) - : Image.file( - File(url), - fit: BoxFit.contain, - ), + color: Colors.black, + child: Center( + child: PinchZoom( + child: url.startsWith('http') + ? DSCachedNetworkImageView( + url: url, + fit: BoxFit.contain, + placeholder: (context, _) => _buildLoading(), + align: align, + style: style, + shouldAuthenticate: shouldAuthenticate, + ) + : Image.file( + File(url), + fit: BoxFit.contain, + ), + ), ), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 830f591f..e66f610f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: blip_ds description: Blip Design System for Flutter. -version: 0.0.99 +version: 0.1.0 homepage: https://github.com/takenet/blip-ds-flutter#readme repository: https://github.com/takenet/blip-ds-flutter diff --git a/sample/lib/widgets/showcase/sample_ticket_message.showcase.dart b/sample/lib/widgets/showcase/sample_ticket_message.showcase.dart index 9612c4b8..df51a600 100644 --- a/sample/lib/widgets/showcase/sample_ticket_message.showcase.dart +++ b/sample/lib/widgets/showcase/sample_ticket_message.showcase.dart @@ -13,15 +13,18 @@ class SampleTicketMessage extends StatelessWidget { messageType: DSTicketMessageType.forwardedTicket, ticketId: '2022000123', chatbotIdentity: 'Papagaio', + contentStatus: 'waiting', ), const SizedBox(height: 20.0), DSTicketMessage( messageType: DSTicketMessageType.closedAttendant, agentIdentity: 'Jhon Doe', + contentStatus: 'waiting', ), const SizedBox(height: 20.0), DSTicketMessage( messageType: DSTicketMessageType.closedCustomer, + contentStatus: 'waiting', ), const SizedBox(height: 20.0), ],