import 'package:gluestack_ui/gluestack_ui.dart';
GSProgress(
value: 0.4,
size: GSSizes.$md,
)
import "package:gluestack_ui/gluestack_ui.dart"
Parameters | Type | Default | Description |
---|---|---|---|
value | double | - | It is used to set the progress of the progress bar |
Parameters | Description |
---|---|
style | Parameter to style GSProgress widget |
Name | Value | Default |
---|---|---|
size | xs | sm | md | lg | xl | 2xl | md |
import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
GSText(text: "Downloading 55%"),
SizedBox(
height: 5,
),
GSProgress(
value: 0.55,
),
],
)
import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
GSProgress(
value: 0.55,
style: GSStyle(progressValueColor: $GSColors.rose400),
),
const SizedBox(
height: 20,
),
GSProgress(
value: 0.55,
style: GSStyle(progressValueColor: $GSColors.blue500),
),
const SizedBox(
height: 20,
),
GSProgress(
value: 0.55,
style: GSStyle(progressValueColor: $GSColors.green500),
),
const SizedBox(
height: 20,
),
GSProgress(
value: 0.55,
style: GSStyle(progressValueColor: $GSColors.orange500),
),
],
)
import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const GSHeading(text: "Internal Storage"),
const SizedBox(
height: 5,
),
GSProgress(
value: 0.55,
style: GSStyle(
progressValueColor: $GSColors.green500,
bg: $GSColors.green50,
),
),
const SizedBox(
height: 5,
),
const GSText(text: "14GB"),
],
)