v0.2.0animated_neumorphic
एक फ्लटर पैकेज जिसमें न्यूमोर्फिक थीम कंटेनर है जो मानों में बदलाव के साथ आइम्प्लिसिट रूप से एनिमेट होता है। उपयोग में आसान, फ्लटर के आंतरिक Animated विजेट की तरह।
एक फ्लटर पैकेज न्यूमोर्फिज्म डिज़ाइन कंटेनर के साथ इम्पलिट एनीमेशन का कार्यान्वयन करता है।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Flutter package that contains Neumorphismic theme Container.
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
animated_neumorphic: "^0.1.0"
In your library add the following import:
import 'package:animated_neumorphic/animated_neumorphic.dart';
For help getting started with Flutter, view the online documentation.
For simple button:
class NeumorphicButton extends StatefulWidget {
final bool isActive;
const NeumorphicButton({Key key, this.isActive}) : super(key: key);
@override
_NeumorphicButtonState createState() => _NeumorphicButtonState();
}
class _NeumorphicButtonState extends State<NeumorphicButton> {
bool _isActive = false;
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
setState(() {
_isActive = !_isActive;
});
},
child: AnimatedNeumorphicContainer(
depth: _isActive ? 0.0 : 1.0,
color: Color(0xFFF2F2F2),
width: 60,
height: 60,
radius: 16,
child: Icon(Icons.access_time),
),
);
}
}
Please see the Changelog page to know what's recently changed.
Feel free to contribute to this project.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.