パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリWhat-the-Flutter/wtf_rotary_dial

wtf_rotary_dial

What-the-Flutter/wtf_rotary_dial open-source repository details.

wtf_rotary_dial のプロジェクト画像
スター
4
フォーク
0
最終プッシュ(UTC)
2023/04/06
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

Rotary Dial

A Widget that allows you to dial numbers by rotating the dial.

demo1

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:

demo1

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.
flutter.wtf GitHub avatar
GitHub 作者

flutter.wtf ↗

Leading Flutter development agency 🚀

flutter.wtfTallinn
言語DartC++CMakeHTMLCSwiftKotlinObjective-C

使用している依存関係

依存関係一覧 2 件

  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗