Last updated:
0 purchases
group separator
Group Separator #
A widget that seperates a group of widgets using a Divider and a title.
Usage #
Import the package:
import 'package:group_seperator/group_separator.dart';
copied to clipboard
Use the widget:
GroupSeparator(
separatorText: Text('Or'),
separatorColor: Colors.black,
separatorThickness: 1,
separatorTextPosition: GroupSeparatorTextPosition.center,
);
copied to clipboard
The above code will create a separator with the text 'Or' in the center.
The separator will have a thickness of 1 and the color will be black.
The separator can be positioned to the left or right of the text.
The default position is center.
Attributes and their default values #
separatorText #
The text to be displayed in the separator.
This is typically a Text widget.
It is required and cannot be null
separatorColor #
The color of the separator.
This is optional and defaults to black.
It can be any color.
separatorThickness #
The thickness of the separator.
This is optional and defaults to 1.0.
It should not be more than 10.0.
separatorTextPosition #
The position of the separator text.
This is optional and defaults to center.
It can be either left, right or center.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.