Skip to content

Commit

Permalink
Merge pull request #105 from takenet/develop
Browse files Browse the repository at this point in the history
Release v0.0.35
  • Loading branch information
leonardogbr authored Mar 16, 2023
2 parents bc9d790 + 0363633 commit 6295e71
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 35 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.35

* [DSHeader] Added default StatusBar color

## 0.0.34

* [DSHeader] Adding bottom property on appbar
Expand Down
55 changes: 25 additions & 30 deletions lib/src/widgets/chat/ds_image_message_bubble.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,37 +194,32 @@ class _DSImageMessageBubbleState extends State<DSImageMessageBubble>
}

Widget _buildPage(BuildContext context) {
return AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle.light.copyWith(
statusBarColor: Colors.transparent,
),
child: Obx(
() => Scaffold(
backgroundColor: Colors.black,
extendBodyBehindAppBar: true,
appBar: DSHeader(
showBorder: false,
visible: _controller.appBarVisible.value,
title: widget.appBarText,
customerUri: widget.appBarPhotoUri,
customerName: widget.appBarText,
backgroundColor: Colors.black.withOpacity(.7),
systemUiOverlayStyle: SystemUiOverlayStyle.light.copyWith(
statusBarColor: Colors.transparent,
),
onBackButtonPressed: Get.back,
return Obx(
() => Scaffold(
backgroundColor: Colors.black,
extendBodyBehindAppBar: true,
appBar: DSHeader(
showBorder: false,
visible: _controller.appBarVisible.value,
title: widget.appBarText,
customerUri: widget.appBarPhotoUri,
customerName: widget.appBarText,
backgroundColor: Colors.black.withOpacity(.7),
systemUiOverlayStyle: SystemUiOverlayStyle.light.copyWith(
statusBarColor: Colors.transparent,
),
body: GestureDetector(
onTap: () => _controller.showAppBar(),
child: Container(
padding: const EdgeInsets.all(8.0),
child: PinchZoom(
child: DSCachedNetworkImageView(
url: widget.url,
fit: BoxFit.contain,
align: widget.align,
style: widget.style,
),
onBackButtonPressed: Get.back,
),
body: GestureDetector(
onTap: () => _controller.showAppBar(),
child: Container(
padding: const EdgeInsets.all(8.0),
child: PinchZoom(
child: DSCachedNetworkImageView(
url: widget.url,
fit: BoxFit.contain,
align: widget.align,
style: widget.style,
),
),
),
Expand Down
8 changes: 6 additions & 2 deletions lib/src/widgets/utils/ds_header.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,19 @@ class DSHeader extends StatelessWidget implements PreferredSizeWidget {
this.canPop,
this.onBackButtonPressed,
this.titleTextStyle,
this.systemUiOverlayStyle,
this.elevation = 0.0,
this.bottomWidget,
this.onTap,
this.backgroundColor = DSColors.neutralLightSnow,
this.borderColor = DSColors.neutralMediumWave,
this.showBorder = true,
this.visible = true,
}) : super(key: key) {
final SystemUiOverlayStyle? systemUiOverlayStyle,
}) : systemUiOverlayStyle = systemUiOverlayStyle ??
SystemUiOverlayStyle.dark.copyWith(
statusBarColor: Colors.transparent,
),
super(key: key) {
isBackgroundLight = backgroundColor.computeLuminance() > 0.5;
}

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.34
version: 0.0.35
homepage: https://github.com/takenet/blip-ds-flutter#readme
repository: https://github.com/takenet/blip-ds-flutter

Expand Down
2 changes: 1 addition & 1 deletion sample/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 7adbc9d59f05e1b01f554ea99b6c79e97f2214a2

COCOAPODS: 1.11.3
COCOAPODS: 1.12.0
2 changes: 1 addition & 1 deletion sample/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.32"
version: "0.0.35"
boolean_selector:
dependency: transitive
description:
Expand Down

0 comments on commit 6295e71

Please sign in to comment.