kohana 1.0.7

  • Readme
  • Changelog
  • Example
  • Installing
  • 75

Kohana #

pub pub
State management (flutter_hooks based), validators, common models, event bus, responsive layout and more in one codebase.

State management #

State management and widget lifecycle events

void handleManagedFields() {}
void componentDidMount() {}
void componentWillUnmount() {}
WidgetBuilder managedView(String path, [Map<String, dynamic> params]);
void setState([VoidCallback fn]);
var mounted = false;

Various models #

Models with properties like disposeBag, T data , void dispose(), isWaiting...

class BaseViewModel<T extends BaseModel>
class BaseModel
class SingleItemsModel<T> extends BaseModel
class Tuple
class Sink
class EventBus

Validators #

Including Validator

final validator = MultiValidator([
  MinLengthValidator(validators.charactersCount),
  AlphanumericValidator(),
]);

Views #

Utils for building responsive layouts:

class SizingInformation
class ScreenTypeLayout
class ResponsiveBuilder
class OrientationLayout

1.0.7 #

  • ...

1.0.6 #

  • ...

1.0.5 #

  • ...

1.0.4 #

  • ...

1.0.3 #

  • onAppComponentCreated

1.0.2 #

  • Titanium app

1.0.1 #

  • First version

1.0.0 #

  • Initial publish

example/Example.md

Example #

Kohana in action (Daggerito app)

State management #

State management and widget lifecycle events

void handleManagedFields() {}
void componentDidMount() {}
void componentWillUnmount() {}
WidgetBuilder managedView(String path, [Map<String, dynamic> params]);
void setState([VoidCallback fn]);
var mounted = false;

Various models #

Models with properties like disposeBag, T data , void dispose(), isWaiting...

class BaseViewModel<T extends BaseModel>
class BaseModel
class SingleItemsModel<T> extends BaseModel
class Tuple
class Sink
class EventBus

Validators #

Including Validator

final validator = MultiValidator([
  MinLengthValidator(validators.charactersCount),
  AlphanumericValidator(),
]);

Views #

Utils for building responsive layouts:

class SizingInformation
class ScreenTypeLayout
class ResponsiveBuilder
class OrientationLayout

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  kohana: ^1.0.7

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:kohana/kohana.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
50
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Apr 6, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
daggerito >=1.0.6 <2.0.0 1.0.8
equatable >=1.0.0 <2.0.0 1.1.1
flutter 0.0.0
flutter_hooks >=0.8.0 <1.0.0 0.8.0+1
routex >=1.0.9 <2.0.0 1.0.9
rxdart >=0.23.1 <1.0.0 0.23.1 0.24.0-dev.1
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
test >=1.9.0 <2.0.0