An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


Pub.dev Badge
Effective Dart Badge
MIT License Badge
Flutter Platform Badge

# 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.