Skip to content

Commit

Permalink
Merge pull request #258 from takenet/develop
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
githubdoandre authored Apr 9, 2024
2 parents 7ba7f5c + 882d7a7 commit b7b4e53
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0

- [DSExpandedImage] Fixed image layout when expanded.

## 0.0.99

- [DSTicketMessage] Added ```contentStatus``` property.
Expand Down
33 changes: 17 additions & 16 deletions lib/src/widgets/utils/ds_expanded_image.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class DSExpandedImage extends StatelessWidget {
child: Obx(
() => Scaffold(
backgroundColor: Colors.black,
extendBodyBehindAppBar: true,
appBar: DSHeader(
showBorder: false,
visible: _isAppBarVisible.value,
Expand All @@ -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,
),
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
],
Expand Down

0 comments on commit b7b4e53

Please sign in to comment.