├── test └── status_bar_test.dart ├── analysis_options.yaml ├── CHANGELOG.md ├── .metadata ├── .gitignore ├── pubspec.yaml ├── LICENSE ├── lib └── status_navigation.dart └── README.md /test/status_bar_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | 3 | 4 | void main() { 5 | test('adds one to input values', () { 6 | }); 7 | } 8 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * In this dependency, StatusBarColor is a widget that changes the color of the status bar and the system navigation bar. 4 | 5 | ## 1.0.0 6 | 7 | * Update Version. 8 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "300451adae589accbece3490f4396f10bdf15e6e" 8 | channel: "stable" 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | build/ 30 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: status_navigation 2 | description: "Widget modifying status & navigation bar color: StatusBarColor dependency project." 3 | version: 1.0.0 4 | homepage: https://github.com/Puneetsharma5525/StatusBarColor 5 | repository: https://github.com/Puneetsharma5525/StatusBarColor 6 | environment: 7 | sdk: '>=3.3.3 <4.0.0' 8 | flutter: ">=1.20.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | dev_dependencies: 15 | flutter_test: 16 | sdk: flutter 17 | flutter_lints: ^3.0.2 18 | 19 | flutter: 20 | plugin: 21 | platforms: 22 | android: 23 | package: com.puneet.status_bar 24 | pluginClass: StatusBarPlugin 25 | ios: 26 | pluginClass: StatusBarPlugin 27 | linux: 28 | pluginClass: StatusBarPlugin 29 | macos: 30 | pluginClass: StatusBarPlugin 31 | windows: 32 | pluginClass: StatusBarPluginCApi 33 | web: 34 | pluginClass: StatusBarWeb 35 | fileName: status_bar.dart 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /lib/status_navigation.dart: -------------------------------------------------------------------------------- 1 | library status_bar; 2 | 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter/services.dart'; 6 | 7 | class StatusBarColor extends StatelessWidget { 8 | final Widget child; 9 | final Color statusBarColor; 10 | final Color systemNavigationBarColor; 11 | final Brightness statusBarIconBrightness; 12 | 13 | const StatusBarColor({ 14 | super.key, 15 | required this.child, 16 | this.statusBarColor = Colors.white, 17 | this.systemNavigationBarColor = Colors.white, 18 | this.statusBarIconBrightness = Brightness.dark, 19 | }); 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return AnnotatedRegion( 24 | value: SystemUiOverlayStyle.light.copyWith( 25 | statusBarColor: statusBarColor, 26 | statusBarIconBrightness: statusBarIconBrightness, 27 | systemNavigationBarColor: systemNavigationBarColor, 28 | statusBarBrightness: Brightness.light, 29 | systemStatusBarContrastEnforced: true, 30 | systemNavigationBarContrastEnforced: true, 31 | systemNavigationBarIconBrightness: Brightness.dark, 32 | ), 33 | child: SafeArea( 34 | child: child, 35 | ), 36 | ); 37 | } 38 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # StatusBarColor Plugin 2 | 3 | [![pub package](https://img.shields.io/pub/v/status_navigation.svg)](https://pub.dartlang.org/packages/status_navigation) 4 | 5 | StatusBarColor is a Flutter plugin that provides a convenient way to change the color of the status bar and the system navigation bar in your Flutter applications. With this dependency, you can easily customize the appearance of these elements to match the design of your app, enhancing the overall user experience. 6 | 7 | ## Features 8 | 9 | - **Customizable Colors**: Easily change the color of the status bar and system navigation bar to suit your app's theme and design. 10 | - **Simple Integration**: Integrate StatusBarColor widget into your Flutter project effortlessly, with minimal setup required 11 | 12 | ## Getting Started 13 | 14 | To start using StatusBarColor in your Flutter project, follow these simple steps: 15 | 16 | 1. **Installation**: Add the StatusBarColor dependency to your `pubspec.yaml` file: 17 | 18 | ```yaml 19 | dependencies: 20 | status_navigation: ^1.0.0 21 | ``` 22 | 23 | ## License 24 | 25 | [MIT](https://choosealicense.com/licenses/mit/) 26 | 27 | 28 | ## Feedback 29 | 30 | If you have any feedback, please reach out to us at puneetsharma5525@gmail.com 31 | 32 | 33 | 34 | 35 | ## 🚀 About Me 36 | Hello, I'm Puneet! 👋 I'm a Flutter developer stepping into the world of Spring Boot, with a keen interest in discovering fresh animations and delving into research. 37 | 38 | 39 | ## 🔗 Links 40 | [![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge&logo=ko-fi&logoColor=white)](https://teachcrzzy.blogspot.com/) 41 | [![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/puneet5525/) 42 | [![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/puneet_a1/) 43 | 44 | --------------------------------------------------------------------------------