Buscar pacotes, repositórios e categorias de apps

Capa de animated_analog_clock
Detalhes do pacotev0.2.2

animated_analog_clock

Um widget de relógio analógico personalizável e animado para aplicativos Flutter.

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
268
Curtidas
16
Pontos Pub
150

Instalar pacote

flutter pub add animated_analog_clock

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

Um widget de relógio analógico personalizável e animado para o Flutter, projetado para exibir o tempo com animações suaves em tempo real em múltiplas plataformas. Suporta várias opções de estilo para o mostrador, ponteiros e marcadores, permitindo que os desenvolvedores ajustem sua aparência conforme os temas do aplicativo. O widget se atualiza dinamicamente, garantindo precisão no horário com impacto mínimo no desempenho. Ideal para aplicativos que exigem uma exibição visualmente atraente do tempo, como painéis, ferramentas de produtividade ou interfaces minimalistas.

Casos de uso

  • Widgets do painel
  • Aplicativos de produtividade
  • Interfaces de usuário minimalistas
  • Ferramentas de rastreamento de tempo
  • Aplicativos de bem-estar digital

Principais recursos

  • Animações suaves em tempo real
  • Painel e ponteiros de relógio personalizáveis
  • Compatibilidade multiplataforma
  • Estilos e cores de mão configuráveis
  • Atualizações automáticas de tempo
  • Desempenho leve

Indicado para

  • Desenvolvedores de aplicativos focados no tempo
  • Designers procurando interfaces de relógio elegantes
  • Aplicativos que precisam de exibição de tempo em tempo real
  • Projetos direcionados para múltiplas plataformas
  • Usuários que querem um relógio simples, mas atraente

Considerações

  • Pode exigir estilos adicionais para o modo escuro
  • O desempenho depende da taxa de quadros da animação
  • Limitado ao exibição de hora estilo analógico
  • Não adequado para necessidades de tempo digital apenas
  • A personalização pode exigir tentativas e erros para obter o melhor aspecto

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

Flutter Animated Analog Clock

pub package

A customizable and animated analog clock widget. This package provides a fully customizable analog clock widget that supports animation for smooth transitions of clock hands. Users can customize various aspects of the clock including size, colors, background, and more.

Flutter Analog Clock Screenshot  

New in Version 0.2.2

Image Dial (New Feature)

You can now use an Image Dial as the clock's face, allowing you to set a background image. This can be a network image or an asset image, making your analog clock even more visually appealing and customizable.

Example:
AnimatedAnalogClock(
  backgroundImage: NetworkImage(
    'https://cdn.pixabay.com/photo/2023/12/01/22/27/spiderman-8424632_1280.jpg',
  ),
);

Or with an asset image:

AnimatedAnalogClock(
  backgroundImage: AssetImage(
    'path/to/your/image.png',
  ),
);

Dial Options

Image (New in Version 0.2.2)
Image Dial
Numbers
Numbers Dial
Numbers and Dashes
Numbers and Dashes Dial
Roman Numerals
Roman Numerals Dial
Dashes
Dashes Dial
No Dial
Dashes Dial

Installation

In your pubspec.yaml file of your Flutter Project, add the following dependency:

dependencies:
  animated_analog_clock: ^0.2.2

Import

import 'package:animated_analog_clock/animated_analog_clock.dart';

Features

  • Customizable Design: Users can customize various aspects of the analog clock, including size, colors, background, and more, to match their app's design aesthetics.

  • Smooth Animations: The analog clock widget supports smooth animations for clock hands, providing a visually pleasing experience for users.

  • Timezone Support: The clock widget supports displaying time in different timezones, allowing users to customize the clock based on their location or preferences.

  • Timezone Support with Location Specification: Users can specify a location name, and the clock will display the time according to the timezone associated with that location. To find valid location names for timezones, check out the this documentation.

  • Lightweight and Efficient: The package is designed to be lightweight and efficient, ensuring smooth performance even on devices with limited resources.

  • DialType Enum: Introduced the DialType enum to support different dial options: dashes, numbers, numberAndDashes, and none.

Usage

Basic Usage
const AnimatedAnalogClock()
Customization Options
AnimatedAnalogClock(
          location: 'Australia/Darwin',
          // Gradient Background if you want
          // backgroundGradient: RadialGradient(colors: []),
          // Set a network image as the background
          // backgroundImage: NetworkImage(
          // 'url',
          // ),
          // Alternatively, set an asset image as the background
          // backgroundImage: AssetImage(
          //   'path/to/your/asset/image.png',
          // ),
          clock: () => DateTime.now(),
          backgroundColor: Color(0xff1E1E26),
          hourHandColor: Colors.lightBlueAccent,
          minuteHandColor: Colors.lightBlueAccent,
          secondHandColor: Colors.amber,
          centerDotColor: Colors.amber,
          hourDashColor: Colors.lightBlue,
          minuteDashColor: Colors.blueAccent,
        ),
API Documentation

For detailed information about the classes and methods available in this package, refer to the API documentation.

Example

More examples can be found in the example/ folder.

License

This package is distributed under the MIT License. See the LICENSE file for details.

Contact

For questions, feedback, or suggestions regarding this package, please feel free to contact the author at [devhasanzaman@gmail.com](mailto:devhasanzaman@gmail.com).

Categorias

Dependências

Lista de dependências 1 itens

Repositório-fonte

Projetos que usam este pacote