koyo 0.2.11 copy "koyo: ^0.2.11" to clipboard
koyo: ^0.2.11 copied to clipboard

A Flutter utility library that enables faster development and less boilerplate for specific use cases.

Koyo a "Flutter utility library" #

This library is mainly used by hobby projects and apps by Wydget.

The focus is on the following points:

  • ⚡ Fast development
  • 🔥 Good & structured dx
  • ⌛ Time saving utils & widgets

NOTE: This library is in a pre alpha state and the documentation is not complete yet!

Getting started #

Install this library with

flutter pub add koyo

Usage #

Wrap your AppShell or Root inside the Koyo widget

Koyo(child: child)

Now you can use all utils and widgets ⚡

Let's have a look at all the available utils! 🔥

⭐ Standalones

// Debouncer
final debouncer = Ky.debouncer()
debouncer.call(...)
debouncer.reset()
debouncer.dispose()

⭐ Utils

Ky.orientation
Ky.platform
Ky.rnd
Ky.duration
Ky.delay

⭐ Styles

Ky.breakpoints
Ky.shadows
Ky.radius
Ky.spacing

And now the widgets! 🔥

⭐ Buttons

KyButton.simple(...)

⭐ Feedback

KyLoader(...)

⭐ Layout

KyColumn(...)
KyRow(...)
KyList(...)
KySpace(...)

⭐ Overlays

KyLoadingOverlay(...)

⭐ Misc

KyEmpty()

Integration with third party libraries #

go_router #

Koyo provides a few utility helpers to quickly introduce new features to the go_router package.

Utilize KyPageExtra to pass informations to the router

context.go(
    '...',
    extra: KyPageExtra(
        data: data, // Provide data or leave it empty
        transition: KyTransition.fade // Select a transition for this page navigation or leave it empty
    ),
);

And configure it inside your routes.dart

GoRoute(
    path: '...',
    pageBuilder: (context, state) {
        final extra = KyPageExtra.fromExtra(state.extra); // Extract [KyPageExtra] from [state.extra]
        return CustomTransitionPage<void>(
            key: state.pageKey,
            child: const Screen(),
            transitionsBuilder: createKyPageAnimation(
                transition: extra.transition,
                defaultTransition: KyTransition.fade,
            ), // Use [createKyPageAnimation] to build the custom ky transition
        );
    },
),

Used libraries #

Following libraries are used inside the Koyo project:

3
likes
0
pub points
0%
popularity

Publisher

verified publisherwydget.de

A Flutter utility library that enables faster development and less boilerplate for specific use cases.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

device_info_plus, flutter, internet_connection_checker_plus

More

Packages that depend on koyo