This is an illustration of a Themed GSIcon component with default configuration.
import 'package:gluestack_ui/gluestack_ui.dart';
GSIcon(
icon: Icons.calendar_month,
size: GSIconSizes.$md,
)
API Reference
Import
To use this widget in your project, include the following import statement in your file.
import "package:gluestack_ui/gluestack_ui.dart"
This section provides a comprehensive reference list for the widget parameters, detailing descriptions, properties, types, and default behavior for easy project integration.
GSIcon
Pre built icons provided by gluestack-ui inherits all the properties of Flutter
Icon widget.
Accessibility
We have outlined the various features that ensure the GSIcon widget is accessible to all users, including those with disabilities. These features help ensure that your application is inclusive and meets accessibility standards.
Parameters
GSIcon widget is created using Icon widget from flutter. It extends all the properties and methods supported by
Flutter Icon and additionally the properties mentioned below.
GSSizes
Name | Value | Default |
---|
size | 2xs | xs | sm | md | lg | xl | md |
Note: These properties are exclusively applicable when utilizing the default configuration of gluestack-ui/config. If you are using a custom theme, these props may not be available.