https://github.com/baimamboukar/group_separator
A flutter widget that can be used to separate groups of widgets using a text and a divider
https://github.com/baimamboukar/group_separator
Last synced: 8 months ago
JSON representation
A flutter widget that can be used to separate groups of widgets using a text and a divider
- Host: GitHub
- URL: https://github.com/baimamboukar/group_separator
- Owner: baimamboukar
- License: mit
- Created: 2023-02-18T00:47:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-18T01:56:01.000Z (over 2 years ago)
- Last Synced: 2025-01-11T22:33:16.351Z (9 months ago)
- Language: C++
- Size: 267 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Group Separator
A widget that seperates a group of widgets using a Divider and a title.## Usage
- Import the package:
```dart
import 'package:group_seperator/group_separator.dart';
```
- Use the widget:```javascript
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.