App Style
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.
Features
- 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.
Installation
Add the following line to your pubspec.yaml
:
dependencies:
app_style: latest_version
Then, run:
flutter pub get
Usage
Import the package
import 'package:app_style/app_style.dart';
Text Styles
Use predefined text styles for a consistent typography across your app.
Text(
'Hello, World!',
style: AppTxtStyles.kBigTitleTextStyle,
);
Border Radius
Apply uniform rounded corners with ease.
Container(
decoration: BoxDecoration(
borderRadius: BorderRadiusStyle.circularBorderRadius(radius: 20),
color: Colors.blue,
),
);
Media Query Helpers
Get screen dimensions dynamically.
double screenWidth = MediaQuerySize.getWidth(context);
double screenHeight = MediaQuerySize.getHeight(context);
Padding Constants
Use predefined padding values for uniform spacing.
Padding(
padding: PaddingConstant.kHorizontalPadding,
child: Text('Consistent Padding!'),
);
Contributions
Contributions are welcome! Feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License. See the LICENSE file for details.
# app_style # app_style # app_style # app_style # app_style # app_style # app_style