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

パッケージ詳細v0.1.4

flutter_sinusoidals

お望みの通りにサイン波を可視化するためのFlutterパッケージです。すべての基本的な波形が既にサポートされており、カスタム波形といくつかの事前定義された波形も利用可能です。

30日間ダウンロード
45
いいね数
110
Pub ポイント
40

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

flutter pub add flutter_sinusoidals

パッケージ概要

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

flutter_sinusoidals は、カスタマイズ可能なパラメータでサイン波を作成および可視化することを目的としたFlutterパッケージです。基本的な波形タイプをサポートし、ユーザーがカスタム波形を定義できるほか、多数の事前定義された波形パターンを含んでいます。アニメーション、データ可視化、インタラクティブUI要素に最適で、正弦波形状をスムーズかつリアルタイムでレンダリングできます。軽量であり、Flutterプロジェクトへの統合も容易で、最小限のコードでダイナミックな波形エフェクトを生成できます。教育アプリや音楽ビジュアライザー、あるいはリズミカルで振動するグラフィックスが必要なあらゆるアプリケーションに特に役立ちます。

用途

  • アニメーション波の背景を作成する
  • 音声または信号データの可視化
  • インタラクティブな音楽ビジュアライザーの構築
  • 三角法の教育ツール
  • ダイナミックなUIトランジションの設計

主な機能

  • 基本およびカスタムのサイン波をサポート
  • 事前に定義された波形パターンが含まれています
  • リアルタイム波形レンダリング
  • Flutter との簡単な統合
  • 調整可能な振幅、周波数および位相

適している対象

  • アニメーションを構築するFlutter開発者
  • 教育アプリ開発者
  • オーディオ可視化プロジェクト
  • 動的なエフェクトを求めるUIデザイナー
  • インタラクティブなデータ表示アプリケーション

注意事項

  • 2D波の可視化に限定
  • 組み込みのオーディオ処理なし
  • アニメーションタイミングの手動処理が必要
  • 高頻度の更新には最適化されていません
  • Flutter のレンダリングパフォーマンスに依存しています

元の README

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

flutter_sinusoidals

Pub

A flutter package that helps you to visualize sine waves as you desire. All basic waves are already supported, plus customized waves & some pre-defined waves.

Overview

Features

  • Creating a sine wave.
  • Creating a stack of sine waves.
  • Combine multiple sine waves together.
  • This package use clipping to achieve wave effect so theoretically you can apply it to any widget. For example, an AppBar with a wave on the bottom.

Getting started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  flutter_sinusoidals:

In your code add the following import:

import 'package:flutter_sinusoidals/flutter_sinusoidals.dart';

Built-in waves

This package comes with 4 kinds of sine waves:

Sinusoidal

A widget which helps visualize a sinusoidal.

Overview

Example of a sinusoidal:

Sinusoidal(
  model: const SinusoidalModel(
    formular: WaveFormular.standing,
    amplitude: 25,
    waves: 2.5,
    frequency: 1.5,
  ),
  child: Container(
    height: 100,
    color: Colors.blue,
  ),
),
Sinusoidals

A widget which helps visualize a stack of sinusoidals.

Overview

Example of a sinusoidals:

Sinusoidals(
  itemCount: 3,
  builder: (context, index) {
    return SinusoidalItem(
      model: SinusoidalModel(
        formular: WaveFormular.travelling,
        amplitude: _amplitude,
        waves: _waves,
        translate: 5.0 * (index + 1),
        center: 5.0 * (index + 1),
      ),
      child: Container(
        height: _height,
        color: _colors[index],
      ),
    );
  },
);
CombinedWave

A widget which helps visualize a combined wave.

A combined wave is a wave that is formed by adding multiple sinusoidals together.

Overview

Example of a combined wave:

CombinedWave(
  reverse: true,
  models: const [
    SinusoidalModel(
      amplitude: 25,
      waves: 20,
      translate: 2.5,
      frequency: 0.5,
    ),
    SinusoidalModel(
      amplitude: 25,
      waves: 15,
      translate: 7.5,
      frequency: 1.5,
    ),
  ],
  child: Container(
    height: 200,
    color: Colors.blue,
  ),
),
MagmaWave

A pre-defined wave that mimicking magma motion.

This is included in the package just to demonstrate that you can create an awesome wave by combining multiple waves together.

Overview

References

To know how sinusoidal works: sinusoidal

Try demos to observe how sinusoidal visually works, and create your version by forming formulas.

Changelog

See the Changelog to know what was changed.

Contributions

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fire an issue.

If you fixed a bug or implemented a feature, please send a pull request.

Special Thanks

A big thank you to KhanAcademy & Wiki for foundational knowledge about sine wave.

A big thank you to all the contributors to the project. Every PR / reported issue is greatly appreciated!

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

データはまだありません。