Skip to content

Commit 44ae784

Browse files
author
Wilberforce Uwadiegwu
authored
Merge pull request wilburx9#76 from nuelsoft/dialog-fix
fix(custom-dialog): adjusted dialog color for dark themed hosts
2 parents 2f13157 + f49ffb8 commit 44ae784

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.4+1
2+
* Downgraded minimum Flutter version to 1.20.1
3+
14
## 1.0.4
25
* Implemented support for V2 Android embedding
36
* Removed instances of deprecated Flutter APIs

lib/src/widgets/custom_dialog.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ class CustomAlertDialog extends StatelessWidget {
5050
),
5151
));
5252

53-
return buildContent(children);
53+
return buildContent(context, children);
5454
}
5555

56-
Widget buildContent(List<Widget> children) {
56+
Widget buildContent(context, List<Widget> children) {
5757
Widget widget;
5858
if (fullscreen) {
5959
widget = new Material(
60-
color: Colors.white,
60+
color: Theme.of(context).brightness == Brightness.light
61+
? Colors.white
62+
: Colors.grey,
6163
child: new Container(
6264
child: onCancelPress == null
6365
? new Padding(

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_paystack
22
description: A Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS.
3-
version: 1.0.4
3+
version: 1.0.4+1
44
author: Wilberforce Uwadiegwu <faradaywilly@gmail.com>
55
homepage: https://github.com/wilburt/flutter_paystack
66

@@ -35,4 +35,4 @@ flutter:
3535

3636
environment:
3737
sdk: ">=2.2.2 <3.0.0"
38-
flutter: ">=1.20.2 <2.0.0"
38+
flutter: ">=1.20.1 <2.0.0"

0 commit comments

Comments
 (0)