design 0.0.2 design: ^0.0.2 copied to clipboard
Flutter App Design System
Flutter App Design System #
Provides basic widgets with default style and design. Widgets are able to inherit colors from the app theme.
Features #
- AppPrimaryButton
Getting started #
- Add
design
as a dependency in your pubspec.yaml file. - Import the library:
import 'package:design/app_primary_button.dart'
;
Example #
AppPrimaryButton(
'Button title',
minimumSize: const Size(200, 48),
backgroundColor: const Color(0xFF0B0020),
disabledBackgroundColor: const Color(0xFFCFCED8),
textStyle: const TextStyle(
fontSize: 16,
color: Color(0xFFFFFFFF),
),
onPressed: () {
// handle click
},
)
Additional information #
We plan to add more complex widgets in the future along with some utility widgets and classes for setting up colors, text themes, fonts etc.