simple_animated_button
이 패키지는 즉시 사용 가능한, 효율적으로 제작되고 우아하게 디자인된 애니메이션 버튼의 컬렉션을 제공합니다.
- 스타
- 4
- 포크
- 2
- 최근 푸시(UTC)
- 2024. 1. 16.
- 프로젝트 상태
- 활성
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Simple Animated Button
This package contains efficient and simply designed animated buttons ready to use.
Getting Started
[1] Add the library as a dependency into your pubspec.yaml file.
dependencies:
simple_animated_button: ^0.0.1
[2] Run flutter pub get
[3] Now in your Dart code, add import to use the package:
import 'package:simple_animated_button/simple_animated_button.dart';
Usage Example
You can also Render the Basic UI of button by just adding required parameters.
Elevated Layer Button
ElevatedLayerButton(
onClick: () {},
buttonHeight: 60,
buttonWidth: 270,
animationDuration: const Duration(milliseconds: 200),
animationCurve: Curves.ease,
topDecoration: BoxDecoration(
color: Colors.amber,
border: Border.all(),
),
topLayerChild: Text(
"ElevatedLayerButton()",
style: monoStyle,
),
baseDecoration: BoxDecoration(
color: Colors.green,
border: Border.all(),
),
),
Horizontal Fill Button
HorizontalFillButton(
onClick: () {},
fillingDuration: const Duration(milliseconds: 700),
curve: Curves.ease,
buttonWidth: 270,
buttonHeight: 40,
cornerRadius: 10,
filledColor: Colors.amber,
initialThickness: 10,
alignment: Alignment.center,
child: Text(
'HorizontalFillButton()',
style: monoStyle,
),
),
Vertical Fill Button
VerticalFillButton(
onClick: () {},
fillingDuration: const Duration(milliseconds: 700),
curve: Curves.easeInOut,
buttonWidth: 240,
buttonHeight: 45,
filledColor: Colors.amber,
initialThickness: 6,
cornerRadius: 10,
alignment: Alignment.center,
child: Text(
'VerticalFillButton()',
style: monoStyle,
),
),
Rounded Fill Button
RoundedFillButton(
onClick: () {},
buttonWidth: 240,
buttonHeight: 40,
fillRadius: 40,
alignment: Alignment.center,
filledColor: Colors.amber,
fillingDuration: const Duration(milliseconds: 700),
curve: Curves.ease,
showInitialShape: true,
child: Text(
'RoundedFillButton()',
style: monoStyle,
),
),
Bouncing Button
BouncingButton(
onClick: () {},
bouncingDuration: const Duration(milliseconds: 300),
curve: Curves.ease,
buttonHeight: 45,
buttonWidth: 200,
buttonBouncingWidth: 30,
alignment: Alignment.center,
buttonDecoration: BoxDecoration(
color: Colors.amber,
borderRadius: BorderRadius.circular(8),
),
child: Text(
"BouncingButton()",
style: monoStyle,
),
),
Trailing Button
TrailingButton(
onClick: () {},
buttonWidth: 210,
buttonHeight: 50,
label: 'TrailingButton()',
labelStyle: monoStyle,
enableAnimation: false,
trailing: const Icon(
Icons.arrow_forward_ios_rounded,
size: 20,
),
animationDuration: const Duration(milliseconds: 400),
curve: Curves.ease,
trailingMovement: 10,
),
🤝 To contribute in this package you can:
- Raise the Merge Request
- Reach out to nachiketgohil185@gmail.com
언어DartSwiftKotlinObjective-C
분류
사용 중인 의존성
의존성 목록 3 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"} - lints개발 의존성
^2.1.1
프로젝트에 맞는 저장소를 선택하려면?
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
- 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
- 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
- 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.
출처 및 관리
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗