Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.1.0 #258

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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
@@ -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,
),
),
),
),
),
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

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