diff --git a/CHANGELOG.md b/CHANGELOG.md index eab0a44..0da56ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.4.3 +* Add background color property to theme + ## 0.4.2 * Updates to support flutter version 3.22.2 diff --git a/example/pubspec.lock b/example/pubspec.lock index 10c1e26..66162d4 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -246,7 +246,7 @@ packages: path: ".." relative: true source: path - version: "0.4.2" + version: "0.4.3" term_glyph: dependency: transitive description: diff --git a/lib/src/presentation/pages/suggestions/suggestions_page.dart b/lib/src/presentation/pages/suggestions/suggestions_page.dart index bd441dd..9032060 100644 --- a/lib/src/presentation/pages/suggestions/suggestions_page.dart +++ b/lib/src/presentation/pages/suggestions/suggestions_page.dart @@ -125,7 +125,8 @@ class _SuggestionsPageState extends State { screenTitle: widget.appBarTitle ?? localization.suggestAFeature, ), - backgroundColor: context.theme.scaffoldBackgroundColor, + backgroundColor: theme.backgroundColor ?? + context.theme.scaffoldBackgroundColor, body: state.loading ? const Center(child: CircularProgressIndicator()) : Stack( diff --git a/lib/src/presentation/pages/theme/suggestions_theme.dart b/lib/src/presentation/pages/theme/suggestions_theme.dart index 0ee7021..a55d48e 100644 --- a/lib/src/presentation/pages/theme/suggestions_theme.dart +++ b/lib/src/presentation/pages/theme/suggestions_theme.dart @@ -17,6 +17,7 @@ class SuggestionsTheme { final Color featureLabelColor; final Color bugLabelColor; + final Color? backgroundColor; SuggestionsTheme({ required this.actionColor, @@ -33,6 +34,7 @@ class SuggestionsTheme { required this.bugLabelColor, required this.fade, required this.fabColor, + this.backgroundColor, }); factory SuggestionsTheme.initial() => SuggestionsTheme( @@ -50,6 +52,7 @@ class SuggestionsTheme { bugLabelColor: const Color.fromRGBO(246, 24, 48, 1), fade: const Color.fromRGBO(0, 0, 0, 0.65), fabColor: const Color.fromRGBO(33, 33, 33, 0.12), + backgroundColor: const Color.fromRGBO(255, 255, 255, 0), ); SuggestionsTheme copyWith({ @@ -67,6 +70,7 @@ class SuggestionsTheme { Color? bugLabelColor, Color? fade, Color? fabColor, + Color? backgroundColor, }) { return SuggestionsTheme( actionColor: actionColor ?? this.actionColor, @@ -84,6 +88,7 @@ class SuggestionsTheme { bugLabelColor: bugLabelColor ?? this.bugLabelColor, fade: fade ?? this.fade, fabColor: fabColor ?? this.fabColor, + backgroundColor: backgroundColor ?? this.backgroundColor, ); } } diff --git a/pubspec.yaml b/pubspec.yaml index 0e5d955..0f9b038 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: suggest_a_feature description: Ready-made Flutter package for collecting suggestions from users. -version: 0.4.2 +version: 0.4.3 repository: https://github.com/flutterwtf/Suggest-a-Feature homepage: https://pub.dev/packages/suggest_a_feature