gluestack_ui 0.0.1-alpha.3 copy "gluestack_ui: ^0.0.1-alpha.3" to clipboard
gluestack_ui: ^0.0.1-alpha.3 copied to clipboard

Universal Themed & Unstyled Widgets for Flutter

gluestack-ui-flutter (alpha) #

gluestack-ui-flutter is a universal UI library that provides optionally styled and accessible widgets. These widgets are designed for easy integration into applications developed with Flutter.

Package is in development. APIs may change in the future.

Documentation #

You can try the example app demo on this link: https://gluestack-flutter.web.app/

We are referring gluestack-ui to create gluestack-ui-flutter. Flutter documentation is in progress. You can find the detailed documentation for each component, including a list of props and examples, in https://gluestack.io/ui/docs website.

Features #

  • Customizable widgets: Each widget in the library comes with a set of customizable props that allow you to tailor its appearance and behavior to your specific needs.

  • Responsive design: The widgets are built using modern web design principles and are fully responsive, so they work seamlessly across a wide range of devices and screen sizes.

  • Well-documented: The comes with comprehensive documentation for each widget, including a list of props and examples, to help you get up and running quickly.

  • Easy to use: The widgets are designed to be easy to use and integrate into your existing Flutter applications. Simply install the library and import the widgets you need.

  • Frequent updates: We are constantly working on improving the library and adding new widgets. Follow us on GitHub to stay up-to-date on the latest releases and features.

  • Community support: Need help using the library or have a suggestion for a new feature? Join our Discord channel to connect with the community and get support.

Installation #

Add the package to your dependencies:

dependencies:
  gluestack_ui: 0.0.1-alpha.3

OR

dependencies:
  gluestack_ui:
    git: https://github.com/gluestack/gluestack-ui-flutter.git

Usage #

Wrap the MaterialApp with GluestackProvider.

GluestackProvider(
  child: MaterialApp.router(
    ....
)

Here's an example of how to use GSButton widget into your flutter app:

import 'package:gluestack_ui/gluestack_ui.dart';

GSButton(
  action: GSActions.negative,
  variant: GSVariants.solid,
  size: GSSizes.$lg,
  onPressed: () {},
  style: GSStyle(
    web: GSStyle(
      bg: $GSColors.amber600,
    ),
    ios: GSStyle(
      bg: $GSColors.pink600,
    ),
    onHover: GSStyle(
      bg: $GSColors.green400,
    ),
    md: GSStyle(
      bg: $GSColors.pink400,
    ),
  ),
  child: const GSButtonText(text: "Click Here"),
)

All Gluestack widgets support dark theme. Package detects the current theme from Flutter's inbuilt Theme.of(context).brightness. Hence, you can manage the theme mode from MaterialApp itself using the state management of your choice.

Custom tokens #

You can customize the default tokens to provide your own design values.

GluestackProvider(
  gluestackTokenConfig: GluestackTokenConfig(
    gsColorsToken: const GSColorsToken(
      primary600: Colors.pink,
      primary700: Colors.pink,
    ),
    gsFontSizeToken: const GSFontSizeToken(
      $sm: 12,
      $md: 14,
    ),
    // More token configurations....
  ),
  child: MaterialApp.router(
    ....
  ),
)

Contributing #

We welcome contributions from the community. If you'd like to contribute to gluestack-ui-flutter, please read our contributing guide instructions on how to submit a pull request.

License #

Licensed under the MIT License, Copyright © 2023 GeekyAnts. See LICENSE for more information.

17
likes
0
points
59
downloads

Publisher

verified publishergeekyants.com

Weekly Downloads

Universal Themed & Unstyled Widgets for Flutter

Repository (GitHub)
View/report issues

Topics

#ui #widget #design-system #ui-library

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, fluttertoast, get_it, url_launcher

More

Packages that depend on gluestack_ui