Created to remove boilerplate from your Flutter projects.
Manually add the package to your pubspec.yaml
file in the root of your project:
dependencies:
...
illuminate:
git:
url: [email protected]:UnlockAgency/flutter_illuminate.git
# ref can be any valid Git reference: commit, branch, tag
ref: v1.2.4
Saving the file in Visual Studio will automatically update dependencies. Otherwise run: flutter pub get
in the root of your project.
You're now able to use all of the components in your project:
import 'package:illuminate/ui.dart';
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
child: SpacedColumn(
spacing: 12.0,
children: [
Text('Title'),
// SpacedColumn adds spacing between these widgets.
Text('Content',)
]
),
);
}
}
Thinking about expanding Illuminate, or does it need a bugfix? Change the package reference in your pubspec.yaml
file:
dependencies:
...
illuminate:
# Update to your locally checked out version of the repo
path: ../packages/illuminate/
Running flutter pub get
will instll your local version of the package.
When hot reloading or restarting the app (r
or SHIFT + r
), will reflect the changes you made in the local package.
When you want to inspect your changes during development in your editor, you should open and save the pubspec.yaml
file in Visual Studio or run flutter pub get
.
Done? Commit and push the changes to Github and create a new release including tag and update your ref
.
Extensions or helper methods to use inside your project.
Access core functionality of the app, for instance the current lifecycle state.
Foundational elements to (the principles) of your app.
Create a default logger for your app, which also allows logging to Google Cloud Console.
A network client which provides common configuration for interaction with API's.
Helping you parse the dynamic links your app can receive.
Helping you secure the app with either pin code or biometric authentication.
Extending the popular state management library Provider
.
Providing a basic interaction layer for both Android and iOS secure storage implementations.
Providing a basic interaction layer for both Android and iOS secure storage implementations.
Basic widgets or UI managers to remove boilerplate code.