v0.1.2
splash_tap
जब इसके बच्चे विजेट को टैप करने पर एक दिलचस्प स्प्लैश प्रभाव बनता है
15लाइक 1430-दिन डाउनलोड30Pub अंक
प्लेटफ़ॉर्म डेटा नहीं
जब क्लिक किया जाता है, तो बच्चे के विशेषता पर ओवरलेइंग स्प्लैश बनाने वाला फ्लटर प्रभाव विशेषता।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Makes an interesting splash effect when tapping its child widget.
To use this plugin, add splash_tap as a dependency in your pubspec.yaml file.
The color can be set with the splashColor property. The splash size is dependent on the size of the child widget passed in - which is constrained by the minRadius and maxRadius parameters.
import 'package:flutter/material.dart';
import 'package:splash_tap/splash_tap.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Splash Tap Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: SplashTapDemo(),
);
}
}
class SplashTapDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Splash(
onTap: () {},
child: Text(
'Splash!',
style: TextStyle(fontSize: 32),
),
),
),
);
}
}