glass_kit icon indicating copy to clipboard operation
glass_kit copied to clipboard

remove the require of width / height

Open Huzhengtao opened this issue 2 years ago • 4 comments

Please remove the require of width / height. I need a box filled with children . It works well when there is no width or height .

Huzhengtao avatar May 23 '22 17:05 Huzhengtao

Hey, @Huzhengtao thanks for opening this issue. I regret the inconvenience caused. This is a known issue and we are still working on it. The background blur and noise currently need a height and width. I am trying to make this optional and the container will take constraints from its parent.

bharat-1809 avatar May 23 '22 17:05 bharat-1809

Please remove the require of width / height. I need a box filled with children . It works well when there is no width or height .

+1 for this issue.

Subroid avatar Mar 08 '23 17:03 Subroid

im trying to build apk and getting this error, /C:/src/Pub/Cache/hosted/pub.dev/glass_kit-2.0.1/lib/src/glass_container.dart:406:41: Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't.

  • 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/border_radius.dart').
  • 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/border_radius.dart'). current = ClipRRect(borderRadius: borderRadius, child: current); ^ Target kernel_snapshot failed: Exception

Screenshots glass_kit

Flutter:

  • 3.13.2
  • stable

Dart:

  • 3.1.0

HassHasib avatar Aug 31 '23 10:08 HassHasib

+1 for this issue indeed

mennovanhout avatar Nov 10 '23 09:11 mennovanhout

++ 1 for this issue

i-3mr avatar Apr 28 '24 18:04 i-3mr

Folks, this is resolved and merged. It'll be released on pub.dev with version 4.0.0

Thanks for the patience and contributing to the pkg

bharat-1809 avatar May 21 '24 19:05 bharat-1809