패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.1.4

flutter_sinusoidals

원하는 대로 사인파를 시각화할 수 있도록 도와주는 플러터 패키지입니다. 모든 기본 파형이 이미 지원되며, 사용자 정의 파형과 일부 미리 정의된 파형도 포함되어 있습니다.

30일 다운로드
45
좋아요
110
Pub 점수
40

패키지 설치

flutter pub add flutter_sinusoidals

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

flutter_sinusoidals는 사용자 정의 가능한 매개변수로 사인파를 생성하고 시각화하기 위해 설계된 Flutter 패키지입니다. 기본 파형 유형을 지원하며 사용자가 맞춤 파형을 정의할 수 있고, 여러 가지 미리 정의된 파형 패턴을 포함합니다. 애니메이션, 데이터 시각화 또는 인터랙티브 UI 요소에 적합하며, 실시간으로 부드럽게 사인파 형태를 렌더링할 수 있습니다. 이 패키지는 가볍고 Flutter 프로젝트에 원활하게 통합되며, 최소한의 코드로 동적 파형 효과를 생성할 수 있습니다. 교육용 앱, 음악 비주얼라이저 또는 리듬감 있는 진동 그래픽이 필요한 모든 애플리케이션에 특히 유용합니다.

사용 사례

  • 애니메이션 파도 배경 만들기
  • 음향 또는 신호 데이터 시각화
  • 인터랙티브 음악 시각화 도구 만들기
  • 삼각법을 위한 교육 도구
  • 동적 UI 전환 설계

주요 기능

  • 기본 및 사용자 정의 사인 파장을 지원
  • 사전 정의된 파형 패턴 포함
  • 실시간 파형 렌더링
  • Flutter와의 간단한 통합
  • 사용자 정의 가능한 진폭, 주파수 및 위상

적합한 대상

  • 애니메이션을 구축하는 Flutter 개발자
  • 교육 앱 개발자
  • 오디오 시각화 프로젝트
  • 동적 효과를 원하는 UI 디자이너
  • 인터랙티브 데이터 표시 애플리케이션

고려 사항

  • 2차원 파동 시각화에 제한됨
  • 내장된 오디오 처리 없음
  • 애니메이션 타이밍 처리를 수동으로 수행해야 함
  • 고주기 업데이트에 최적화되지 않음
  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.