Skip to content

Commit

Permalink
- Add missing properties in AppTextField widget
Browse files Browse the repository at this point in the history
- Ability change positive and negative text color in Custom Confirmation Dialog
- Change scaffold light color
  • Loading branch information
bhoominn committed Oct 24, 2021
1 parent f9139a3 commit 62a033d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
7 changes: 5 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,17 @@ class _HomePageState extends State<HomePage> {
onTap: () async {
showInDialog(context, builder: (_) {
return SizedBox(
height: 600,width: 500,
height: 600,
width: 500,
child: ThemeWidget(
onThemeChanged: (data) {
log(data);
},
),
);
}, title: Text('Theme'), contentPadding: EdgeInsets.zero);
},
title: Text('Theme'),
contentPadding: EdgeInsets.zero);
},
),
AppButton(
Expand Down
7 changes: 5 additions & 2 deletions lib/src/widgets/ConfirmationDialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ Future<bool?> showConfirmDialogCustom(
6.width,
Text(
negativeText ?? 'Cancel',
style: boldTextStyle(color: negativeTextColor ?? textPrimaryColorGlobal),
style: boldTextStyle(
color: negativeTextColor ??
textPrimaryColorGlobal),
),
],
).fit(),
Expand All @@ -383,7 +385,8 @@ Future<bool?> showConfirmDialogCustom(
6.width,
Text(
positiveText ?? getPositiveText(dialogType),
style: boldTextStyle(color: positiveTextColor ?? Colors.white),
style: boldTextStyle(
color: positiveTextColor ?? Colors.white),
),
],
).fit(),
Expand Down
4 changes: 3 additions & 1 deletion lib/src/widgets/SettingItemWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class SettingItemWidget extends StatelessWidget {
children: [
Text(
title.validate(),
style: titleTextStyle ?? boldTextStyle(color: titleTextColor ?? textPrimaryColorGlobal),
style: titleTextStyle ??
boldTextStyle(
color: titleTextColor ?? textPrimaryColorGlobal),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nb_utils
description: This package helps you daily usable function and ready made Widgets with ease.
version: 4.4.9
version: 4.4.10
#homepage: https://bhoominn.github.io
repository: https://github.com/bhoominn/nb_utils
issue_tracker: https://github.com/bhoominn/nb_utils/issues
Expand All @@ -16,7 +16,7 @@ dependencies:

shared_preferences: ^2.0.6
fluttertoast: ^8.0.8
connectivity_plus: ^1.0.8
connectivity_plus: ^2.0.2

flutter:
plugin:
Expand Down

0 comments on commit 62a033d

Please sign in to comment.