wtf_rotary_dial
What-the-Flutter/wtf_rotary_dial open-source repository details.
- 스타
- 4
- 포크
- 0
- 최근 푸시(UTC)
- 2023. 4. 6.
- 프로젝트 상태
- 활성
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Rotary Dial
A Widget that allows you to dial numbers by rotating the dial.
Click here to view the full example.
Inspired by this.
Installing
Add it to your pubspec.yaml file:
dependencies:
wtf_rotary_dial: ^0.1.0
Install packages from the command line
flutter pub get
If you like this package, consider supporting it by giving it a star on GitHub and a like on pub.dev ❤️
Usage
You can use the Rotary Dial widget in the following way:
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'WTF Rotary Dial',
home: Scaffold(
body: Center(
child: RotaryDial(
onDigitSelected: (value) {
// The value is entered number.
},
rotaryDialThemeData: RotaryDialThemeData(
spinnerColor: const Color(0xFFFFFFFF),
rotaryDialColor: const Color(0xFF1871F0),
dialColor: const Color(0xFF529AFF),
numberColor: const Color(0xFFFFFFFF),
margin: null,
dialBorderRadius: null,
),
duration: const Duration(milliseconds: 500),
curve: Curves.decelerate,
),
),
),
);
}
Result:
Theme
You can customize the widget to your liking. There is a helper RotaryDialThemeData class for this.
| Parameter | Description |
|---|---|
| rotaryDialColor | This parameter is responsible for assigning the color of the main circle. |
| spinnerColor | This parameter is responsible for assigning the color of the rotating part. |
| dialColor | This parameter is responsible for assigning the color of the circle inside which the number is located. |
| numberColor | This parameter is responsible for assigning the color of numbers. |
| margin | This parameter is responsible for setting the outer padding. |
| dialBorderRadius | This parameter is responsible for assigning the radius of the circle inside which the number is located. |
언어DartC++CMakeHTMLCSwiftKotlinObjective-C
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
프로젝트에 맞는 저장소를 선택하려면?
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
- 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
- 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
- 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.
출처 및 관리
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗

