Buscar pacotes, repositórios e categorias de apps

Repositório GitHubWhat-the-Flutter/wtf_rotary_dial

wtf_rotary_dial

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

Capa do projeto wtf_rotary_dial
Estrelas
4
Forks
0
Último push (UTC)
6 de abr. de 2023
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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
Autor no GitHub

flutter.wtf ↗

Leading Flutter development agency 🚀

flutter.wtfTallinn
LinguagensDartC++CMakeHTMLCSwiftKotlinObjective-C

Dependências usadas

Lista de dependências 2 itens

  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

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

GitHub Docs — About repositories ↗