v0.0.5circular
円形スライダーでデータを選択および表示するためのFlutterパッケージ。特定の範囲内の値を扱うのが簡単になります。
29いいね 9330日間ダウンロード140Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Mahmoudgarwallane/circular_slider open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
flutter pub add circular
import 'package:circular/circular.dart';
CircularSlider(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(200),
boxShadow: const [
BoxShadow(
offset: Offset(-10, -10),
color: Colors.white,
blurRadius: 20,
spreadRadius: 1),
BoxShadow(
offset: Offset(10, 10),
color: Color.fromARGB(255, 158, 158, 158),
blurRadius: 20,
spreadRadius: 1)
]),
maxValue: 100,
radius:100,
child: Text(
value.toString(),
style: TextStyle(fontSize: 30),
),
color: Color(0xffEEEEEE),
sliderColor: Color(0xff62CBDA),
unSelectedColor: Color(0xffD7DEE7),
onDrag: (value) {
setState(() {
this.value = value;
});
},
),
CircularViewer(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(200),
boxShadow: const [
BoxShadow(
offset: Offset(-10, -10),
color: Colors.white,
blurRadius: 20,
spreadRadius: 1),
BoxShadow(
offset: Offset(10, 10),
color: Color.fromARGB(255, 158, 158, 158),
blurRadius: 20,
spreadRadius: 1)
]),
value: 50,
maxValue: 100,
radius: 100,
textStyle: TextStyle(fontSize: 30),
color: Color(0xffEEEEEE),
sliderColor: Color(0xff62CBDA),
unSelectedColor: Color(0xffD7DEE7),
)
check out the full example
after I made the the magic circle I decided to make it useful so I made this package
Contributions are always welcome!
依存関係一覧 3 件
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗