A Flutter package that provides predefined styles for text, padding, border radius, and media query utilities to ensure a consistent design language across your app.
- Predefined TextStyles for various text sizes and weights.
- Convenient BorderRadius styling for UI elements.
- MediaQuery helpers to get screen size dynamically.
- Padding constants for maintaining uniform spacing in your app.
- Responsive layout helpers and themable structure.
- Example usage available in
/example
folder.
Add the following line to your pubspec.yaml
:
dependencies:
app_style: latest_version
Then, run:
flutter pub get
import 'package:app_style/app_style.dart';
Use predefined text styles for a consistent typography across your app.
Text(
'Hello, World!',
style: AppTextStyles.titleBig,
);
Apply uniform rounded corners with ease.
Container(
decoration: BoxDecoration(
borderRadius: BorderRadiusStyle.all(radius: 20),
color: Colors.blue,
),
);
Get screen dimensions dynamically.
double screenWidth = MediaQuerySizeHelper.width(context);
double screenHeight = MediaQuerySizeHelper.height(context);
Use predefined padding values for uniform spacing.
Padding(
padding: PaddingConstants.appScreenPadding,
child: Text('Consistent Padding!'),
);
See example/lib/main.dart
for a complete demo of how to use the styles in a real Flutter screen.
Contributions are welcome! Feel free to submit a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.
app_style Developed with ❤️ by Shohidul Islam