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

vertical_weight_slider のカバー
パッケージ詳細v2.6.0

vertical_weight_slider

このパッケージは、使いやすくスクロール可能な垂直ウェイトスライダーを提供します。Android、iOS、Webに対応しています。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
664
いいね数
79
Pub ポイント
160

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

flutter pub add vertical_weight_slider

パッケージ概要

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

vertical_weight_slider パッケージは、Flutter アプリケーション向けにスクロール可能な縦方向スライダーを提供し、重さや値の選択を直感的に行えるようにします。クロスプラットフォーム対応で、Android、iOS、Web、macOS、Windows、Linux をサポートしています。スライダーは簡単に統合・カスタマイズでき、スムーズなスクロールと反応性のあるフィードバックを提供します。音量や強度、コンパクトな形式での数値調整など、垂直方向の動きによる正確な入力が必要なシナリオに最適です。このパッケージは軽量であり、最新の Flutter バージョンと互換性があります。

用途

  • オーディオボリュームの調整
  • 強度レベルの設定
  • 数値の入力
  • カスタム UI コントロール
  • インタラクティブダッシュボード
  • フォーム入力

主な機能

  • 垂直スクロールインターフェース
  • クロスプラットフォーム互換性
  • 簡単な統合
  • スムーズスクロール
  • レスポンシブデザイン
  • カスタマイズ可能な外観

適している対象

  • インタラクティブなフォームを構築する開発者
  • コンパクトな入力ウィジェットを必要とするデザイナー
  • 垂直値の調整が必要なアプリ
  • マルチプラットフォーム Flutter プロジェクト
  • UI中心のアプリケーション

注意事項

  • カスタムの見た目を実現するためには、追加のスタイル設定が必要になる場合があります
  • 縦方向のみに制限
  • 横方向のレイアウトには適していません
  • 低性能デバイスではパフォーマンスが異なる場合があります
  • 完全な互換性には Flutter 3.0+ を必要とします

元の README

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

Vertical Weight Slider

This package provides easy-to-use and scrollable vertical weight slider.

Compatible with Android & iOS & Web. :heart_eyes:

pub


Showcase


Getting Started

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

dependencies:
  vertical_weight_slider : "^lastest_version"

Usage

Need to include the import the package to the dart file where it will be used, refer the below command

import 'package:vertical_weight_slider/vertical_weight_slider.dart';

Complete example

import 'package:flutter/material.dart';
import 'package:vertical_weight_slider/vertical_weight_slider.dart';

void main() {
  runApp(const MaterialApp(home: MyApp()));
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  late WeightSliderController _controller;
  double _weight = 30.0;

  @override
  void initState() {
    super.initState();
    _controller = WeightSliderController(initialWeight: _weight, minWeight: 0, interval: 0.1);
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Vertical Weight Slider Example"),
        centerTitle: true,
      ),
      body: Column(
        children: [
          Container(
            height: 200.0,
            alignment: Alignment.center,
            child: Text(
              "${_weight.toStringAsFixed(1)} kg",
              style: TextStyle(fontSize: 40.0, fontWeight: FontWeight.w500),
            ),
          ),
          VerticalWeightSlider(
            controller: _controller,
            decoration: const PointerDecoration(
              width: 130.0,
              height: 3.0,
              largeColor: Color(0xFF898989),
              mediumColor: Color(0xFFC5C5C5),
              smallColor: Color(0xFFF0F0F0),
              gap: 30.0,
            ),
            onChanged: (double value) {
              setState(() {
                _weight = value;
              });
            },
            indicator: Container(
              height: 3.0,
              width: 200.0,
              alignment: Alignment.centerLeft,
              color: Colors.red[300],
            ),
          ),
        ],
      ),
    );
  }
}


License

Copyright 2020, the Flutter project authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
    * Neither the name of Google Inc. nor the names of its
      contributors may be used to endorse or promote products derived
      from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

カテゴリー

ソースリポジトリ

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

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