v0.1.2
splash_tap
자식 위젯을 탭할 때 흥미로운 스플래시 효과를 만듭니다
15좋아요 3030일 다운로드30Pub 점수
플랫폼 정보 없음
클릭 시 자식 위젯에 겹쳐지는 스플래시를 생성하는 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),
),
),
),
);
}
}
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗