FLUTTER ECOSYSTEM

Sorbh/kdGaugeViewFlutter

KDGaugeView는 Flutter용 간단하고 사용자 정의 가능한 게이지 컨트롤입니다

kdGaugeViewFlutter 프로젝트 이미지
Stars
7
Forks
22
최근 푸시(UTC)
2023. 6. 25.
프로젝트 상태
활성
Saurabh kumar GitHub avatar
GITHUB User

Saurabh kumar ↗

Android Developer | Tech Enthusiast

Jaipur
언어DartHTMLSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

KdGaugeViewFlutter

KDGaugeView is a simple and customizable gauge control for Android inspired by KdGaugeView

The source code is 100% Dart.

pub package License

Motivation

I need some clean Guage view for my Flutter application.

Getting started

Installing

Add this to your package's pubspec.yaml file:

This library is posted in pub.dev

pubspec.yaml
dependencies:  
	kdgaugeview: ^1.0.4

Usage

After Importing this library, you can directly use this view in your Widget tree

import  'package:kdgaugeview/kdgaugeviewflutter.dart';
 GlobalKey<KdGaugeViewState> key = GlobalKey<KdGaugeViewState>();
KdGaugeView(
    key: key,
    minSpeed: 0,
    maxSpeed: 180,
    speed: 70,
    animate: true,
)

Update the speed of the Gauge View using this method

key.currentState.updateSpeed(120, animate: true,duration: Duration(milliseconds: 400));

Customization

Depending on your view you may want to tweak the UI. For now you can these custom attributes

Property Type Description
'speed' double Initial speed for the Gauge
'speedTextStyle' TextStyle Text Style for Speed Text

Screenshots

alt text        alt text

Author

  • Saurabh K Sharma - GIT

    I am very new to open source community. All suggestion and improvement are most welcomed.

Contributing

  1. Fork it (https://github.com/sorbh/kdgaugeViewflutter/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request