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

animated_analog_clock のカバー
パッケージ詳細v0.2.2

animated_analog_clock

Flutterアプリケーション用のカスタマイズ可能でアニメーション付きのアナログ時計ウィジェット。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
293
いいね数
16
Pub ポイント
150

パッケージをインストール

flutter pub add animated_analog_clock

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter用のカスタマイズ可能でアニメーション付きのアナログ時計ウィジェットで、複数のプラットフォームで滑らかなリアルタイムアニメーションで時間を表示するように設計されています。時計の文字盤、針、目盛りに対してさまざまなスタイルオプションをサポートしており、開発者がアプリのテーマに合わせて外観を調整できます。ウィジェットは動的に更新され、最小限のパフォーマンスへの影響で正確な時刻を維持します。ダッシュボード、生産性ツール、ミニマリストインターフェースなど、視覚的に魅力的な時間表示が必要なアプリに最適です。

用途

  • ダッシュボードウィジェット
  • 生産性アプリ
  • ミニマリストUI
  • タイムトラッキングツール
  • デジタルウェルネスアプリ

主な機能

  • スムーズなリアルタイムアニメーション
  • カスタマイズ可能な時計の文字盤と針
  • クロスプラットフォーム互換性
  • カスタマイズ可能な手のスタイルと色
  • 自動時間の更新
  • 軽量なパフォーマンス

適している対象

  • 時間に焦点を当てたアプリを開発する開発者
  • 洗練された時計UIを求めるデザイナー
  • リアルタイムの時刻表示が必要なアプリ
  • 複数のプラットフォームをターゲットにするプロジェクト
  • シンプルで魅力的な時計を望むユーザー

注意事項

  • ダークモード用に追加のスタイルが必要になる場合があります
  • パフォーマンスはアニメーションのフレームレートに依存します
  • アナログ風時計表示に限定
  • デジタル時刻のみの用途には適していません
  • 最適な見た目を得るためには、カスタマイズに試行錯誤が必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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).

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト