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

vertical_weight_slider 표지
패키지 상세v2.6.0

vertical_weight_slider

이 패키지는 사용하기 쉬우며 스크롤 가능한 수직 무게 슬라이더를 제공합니다. Android 및 iOS 및 웹과 호환됩니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
664
좋아요
79
Pub 점수
160

패키지 설치

flutter pub add vertical_weight_slider

패키지 개요

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

vertical_weight_slider 패키지는 플러터 애플리케이션용으로 스크롤 가능한 수직 방향 슬라이더를 제공하여 무게 또는 값 선택을 직관적으로 가능하게 합니다. 크로스플랫폼 사용을 위해 설계되어 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스를 모두 지원합니다. 슬라이더는 쉽게 통합하고 맞춤 설정할 수 있으며, 부드러운 스크롤과 반응성 있는 피드백을 제공합니다. 볼륨 조절, 강도 조절, 컴팩트한 형태의 수치 입력과 같은 수직 이동을 통해 정밀한 입력이 필요한 상황에 적합합니다. 이 패키지는 가볍고 최신 플러터 버전과 호환됩니다.

사용 사례

  • 오디오 볼륨 조정
  • 강도 수준 설정
  • 수치 값 입력
  • 사용자 정의 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.

카테고리

소스 저장소

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

아직 데이터가 없습니다.