GlassConcentric class abstract final Foundations

Radii concentric with a container's: the container's radius less the inset between the two, never below a floor.

// A highlight inset 4 px inside a card of radius 24: radius 20.
final BorderRadius inner = GlassConcentric.borderRadius(
  const BorderRadius.all(Radius.circular(24)),
  const EdgeInsets.all(4),
);

Outward is the same rule with a negative inset — a focus ring drawn 3 px outside a radius of 12 is 15 round (outset).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

borderRadius(BorderRadius outer, EdgeInsets inset, {double min = 0}) → BorderRadius
outer's corners for a shape inset inside it: each corner less the inset of the two sides that meet there, never below min.
outset(BorderRadius inner, double distance) → BorderRadius
inner's corners for a shape drawn distance px outside it on every side — a ring, a halo: each corner grown by the distance.
radius(double outer, double inset, {double min = 0}) → double
The radius of a shape inset px inside a container of radius outer: outer - inset, never below min.