-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.md
More file actions
49 lines (36 loc) · 1.19 KB
/
README.md
File metadata and controls
49 lines (36 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
A dial like selector for a new way of selecting values.
## Features
1. Modular: The dial has children which you will be able to define.
2. Animated: The dial is animated robustly.
3. Selecting values: The API provides a way to give a callback function for ease of use.
4. Ease of Access: There are 2 ways of interacting with the dial, by dragging or by tapping.
## Getting started
In the `pubspec.yaml` of your flutter project, add the following dependency:
```yaml
dependencies:
circular_selector: ^0.0.1
```
In your library add the following import:
```dart
import 'package:circular_selector/circular_selector.dart';
```
That's it, now you can use the CircularSelector widget!
## Usage
You can refer to a simple example below:
```dart
CircularSelector(
onSelected: (int index) {
print('Selected: $index');
},
childSize: 30.0,
radiusDividend: 2.5,
customOffset: Offset(
0.0,
AppBar().preferredSize.height,
),
children: CircularSelector.getTestContainers(20, 30.0),
)
```
For an executable example, refer to the `example` folder.
# CONTRIBUTING
If you would like to contribute to the package, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file.