xlive_switch
कस्टम यूआई और डिज़ाइन वाला स्विच विजेट प्लगइन, ड्रिबबल पर ओलेग फ्रोलोव के डिज़ाइन के समान
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 ↗