From f180267e8906b7a03c579f3a68ed88953bdff177 Mon Sep 17 00:00:00 2001 From: Bharat Sharma <58745044+bharat-1809@users.noreply.github.com> Date: Wed, 22 May 2024 00:43:36 +0530 Subject: [PATCH] chore: update readme & changelog and bump (#41) --- CHANGELOG.md | 6 ++++++ README.md | 8 ++++---- pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2908d51..9897c2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 4.0.0 + +- Make `height` and `width` properties non required in `GlassContainer` +- `GlassContainer` now takes 'boxShadow' as a parameter to customize the shadow instead of `shadowColor` and `elevation` +- Add example to demonstrate the usage of `GlassContainer` in `ListView` + ## 3.0.0 - Update minimum supported SDK version to Flutter 3.0/Dart 3.0 diff --git a/README.md b/README.md index 9f3fcd7..b176939 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You should add the following to the `pubspec.yaml` file: ```yaml dependencies: - glass_kit: ^3.0.0 + glass_kit: ^4.0.0 ``` You should then run `flutter packages get` in your terminal so as to get the package.
@@ -61,16 +61,16 @@ 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. +To create a basic clear glass container you can use the `clearGlass` constructor. If needed, 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. ```dart -GlassContainer.clearGlass(height: 200, width: 300, child: Child()); +GlassContainer.clearGlass(child: Child()); ``` To create a frosted glass container use the `frostedGlass` constructor. ```dart -GlassContainer.frostedGlass(height: 200, width: 300, child: Child()); +GlassContainer.frostedGlass(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.

diff --git a/pubspec.yaml b/pubspec.yaml index 5e7bc6a..46e1222 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: glass_kit description: A package containing widgets to implement glass morphism in flutter apps. -version: 3.0.0 +version: 4.0.0 homepage: https://github.com/bharat-1809/glass_kit environment: