v1.0.5
xlive_switch
커스텀 UI와 디자인을 갖춘 스위치 위젯 플러그인으로, 드리블의 올레그 프로로프의 디자인과 유사합니다.
47좋아요 2830일 다운로드25Pub 점수
플랫폼 정보 없음
Flutter Xlive Switch
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Xlive Switcher plugin for Flutter
This plugin is based on Oleg Frolov's animation design which I found on Dribbble: https://dribbble.com/shots/5429846-Switcher-XLIV
Thanks Oleg Forlov for this beautiful design.
To use plugin, just import package import 'package:xlive_switch/xlive_switch.dart';
You can change the color of the switch follow by these attributes:
import 'package:flutter/material.dart';
import 'package:xlive_switch/xlive_switch.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
bool _value = true;
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
XlivSwitch(
value: _value,
onChanged: _changeValue,
),
Text('Current value: $_value'),
],
),
),
),
);
}
void _changeValue(bool value) {
setState(() {
_value = value;
});
}
}
의존성 목록 1 개
{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗