
Photo by Kelly Sikkema on Unsplash
Widgets and utilities for Flutter, to help with UI. Feel free to use it in your awesome project.
Table of Contents
🚀 Getting started
Step 1: Add dependencies
dependencies:
neat_ui: <version>
And that is all! You're ready to go.
🌟 Features
🗔 Widgets
➤ CenteringScrollView
CustomScrollView with centered children inside. Centering will apply only if content size is less than ScrollView size.
Usage:
final widget = CenteringScrollView(
children: [
Text('Heading'),
Container(
width: 100,
height: 100,
color: Colors.red,
),
],
);
⚙️ Utilities
➤ Color
-
NeatColorExtension- extension onColor- convert color to greyscale;
- darken/lighten color.
Usage:
final redColor = Colors.red; final greyScaleColor = redColor.greyscale();