All Projects → bharat-1809 → glass_kit

bharat-1809 / glass_kit

Licence: MIT license
💎 A package containing widgets to implement glass morphism in flutter apps

Programming Languages

dart
5743 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to glass kit

getwidget-docs
Get Widgets UI library docs.
Stars: ✭ 17 (-66%)
Mutual labels:  flutter-apps, flutter-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+374%)
Mutual labels:  flutter-apps, flutter-package
syntax highlighter
Syntax Highlighter for Dart/Flutter Code
Stars: ✭ 28 (-44%)
Mutual labels:  flutter-apps, flutter-package
liquid button
Liquify your buttons, web demo at website
Stars: ✭ 18 (-64%)
Mutual labels:  flutter-apps, flutter-package
Flutter-firestore-auth
Flutter mobile app with firestore authentication including Email and Social auth.
Stars: ✭ 95 (+90%)
Mutual labels:  flutter-apps, flutter-package
flutter-docset
Community driven Flutter Docset for Dash.app
Stars: ✭ 56 (+12%)
Mutual labels:  flutter-apps, flutter-package
flutter-app
Full Feature Todos Flutter Mobile app with fireStore integration.
Stars: ✭ 138 (+176%)
Mutual labels:  flutter-apps, flutter-package
swipedetector
A Flutter package to detect up, down, left, right swipes.
Stars: ✭ 34 (-32%)
Mutual labels:  flutter-apps, flutter-package
nepali date picker
Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
Stars: ✭ 30 (-40%)
Mutual labels:  flutter-apps, flutter-package
Flutter-Apps
🌀 This is mainly focus on a complete application for production
Stars: ✭ 18 (-64%)
Mutual labels:  flutter-apps, flutter-package
flutter-UI
将Flutter各种Widget各种API📘都实现一次。喜欢请Star。
Stars: ✭ 67 (+34%)
Mutual labels:  flutter-apps, flutter-package
expense-manager
Developers : Checkout this repo for complete CI-CD of flutter with fastlane. Android/iOS both apps are getting deployed on stores with Fastlane.
Stars: ✭ 28 (-44%)
Mutual labels:  flutter-apps
nil
A simple Flutter widget to add in the widget tree when you want to show nothing, with minimal impact on performance.
Stars: ✭ 130 (+160%)
Mutual labels:  flutter-package
bottom animation
Bottom Navigation Mixed Animation
Stars: ✭ 32 (-36%)
Mutual labels:  flutter-package
flutter event calendar
Gregorian and Jalali Event calendar for flutter with options for change style
Stars: ✭ 28 (-44%)
Mutual labels:  flutter-package
flutter qr code scanner generator sharing
Flutter App For Scanning, Generating, Sharing QR Code
Stars: ✭ 137 (+174%)
Mutual labels:  flutter-apps
beer-app
🍺 Example App - Paginate API response with BLoC in Flutter
Stars: ✭ 20 (-60%)
Mutual labels:  flutter-apps
flutter-furniture-app
Flutter Furniture UI
Stars: ✭ 25 (-50%)
Mutual labels:  flutter-apps
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+154%)
Mutual labels:  flutter-package
DismissibleExpandedList
A Flutter package to display hierarchical data in the form of list as well as allows to swipe the individual tiles.
Stars: ✭ 29 (-42%)
Mutual labels:  flutter-package

Glass Kit

A package containing widgets to implement glass morphism in flutter apps


Platform Pub Package Build Status Codecov Coverage License: MIT Donate


Table of contents

About

GlassMorphism, is a new UI trend with a huge popularity among designers. Glass Kit provides you with widgets and other elements to implement this style in your flutter apps easily and efficiently.

Gallery:



ios-themed-glassmorphism         glassmorphism-in-card

Source code for the above can be found in the example directory here


Getting Started

You should add the following to the pubspec.yaml file:

dependencies:
  glass_kit: ^2.0.1

You should then run flutter packages get in your terminal so as to get the package.

Now import the package in the dart file:

import 'package:glass_kit/glass_kit.dart';

Usage

To create a basic clear glass container you can use the clearGlass constructor. Just provide the height and width and you are good to go. The clearGlass and frostedGlass constructors assign default values to the properties if not provided.

GlassContainer.clearGlass(height: 200, width: 300, child: Child());

To create a frosted glass container use the frostedGlass constructor.

GlassContainer.frostedGlass(height: 200, width: 300, child: Child());

Depending on your requirements you can tweak with the properties and create awesome glass widgets. You can also use the GlassContainer constructor to create fully customizable glass widgets.

Note : GlassContainer comes with properties as in a regular Container but with some exceptions and additions. Checkout the docs for the list of properties and their default values.

Here's a fully customized GlassContainer with shape as circle:

GlassContainer(
      height: 300,
      width: 400,
      gradient: LinearGradient(
        colors: [Colors.white.withOpacity(0.40), Colors.white.withOpacity(0.10)],
        begin: Alignment.topLeft,
        end: Alignment.bottomRight,
      ),
      borderGradient: LinearGradient(
        colors: [Colors.white.withOpacity(0.60), Colors.white.withOpacity(0.10), Colors.lightBlueAccent.withOpacity(0.05), Colors.lightBlueAccent.withOpacity(0.6)],
        begin: Alignment.topLeft,
        end: Alignment.bottomRight,
        stops: [0.0, 0.39, 0.40, 1.0],
      ),
      blur: 15.0,
      borderWidth: 1.5,
      elevation: 3.0,
      isFrostedGlass: true,
      shadowColor: Colors.black.withOpacity(0.20),
      alignment: Alignment.center,
      frostedOpacity: 0.12,
      margin: EdgeInsets.all(8.0),
      padding: EdgeInsets.all(8.0),
    );

Note : You can also provide borderRadius but when the shape is BoxShape.rectangle.

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull requests are also welcome.

See Contributing.md.

Contributors

Thanks goes to these wonderful people (emoji key):


Kabilan VS

🐛 💻

This project follows the all-contributors specification. Contributions of any kind are welcome! See Contributing.md.

License

glass_kit is licensed under MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].