v1.0.1
expansion_card
선택적 애니메이션 이미지 배경을 갖춘 사용자 정의 가능한 Flutter 확장 카드입니다.
301좋아요 15630일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
탭 시 카드가 확장되는 플러터 위젯입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This package provides an easy implementation of a Expansion type card where you can also add gif at the background.

import 'package:expansion_card/expansion_card.dart';
Center(
child: ExpansionCard(
background: Image.asset("assets/animations/sleep.gif"),
title: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
"Header",
style: TextStyle(
fontFamily: 'BalooBhai',
fontSize: 30,
color: Colors.white,
),
),
Text(
"Sub",
style: TextStyle(
fontFamily: 'BalooBhai', fontSize: 20, color: Colors.white),
),
],
),
),
children: <Widget>[
Container(
margin: EdgeInsets.symmetric(horizontal: 7),
child: Text("Content goes over here !",
style: TextStyle(
fontFamily: 'BalooBhai',
fontSize: 20,
color: Colors.white)),
)
],
));
There are several options that allow for more control:
| Properties | Description |
|---|---|
leading |
Define an action after slidding a button |
background |
provide any image asset file (supports gif also) |
onExpansionChanged |
When the tile starts expanding, this function is called with the value true. When the tile starts collapsing, this function is called with the value false. |
trailing |
A widget to display instead of a rotating arrow icon |
initiallyExpanded |
Specifies if the list tile is initially expanded (true) or collapsed (false, the default) |
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗