group_separator 1.0.0 group_separator: ^1.0.0 copied to clipboard
Nice group separator made up of divider and text
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';
- Use the widget:
GroupSeparator(
separatorText: Text('Or'),
separatorColor: Colors.black,
separatorThickness: 1,
separatorTextPosition: GroupSeparatorTextPosition.center,
);
- 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.