v0.3.1ticket_material
티켓 보기 위젯입니다. 모든 플랫폼을 지원합니다. 표준 클릭 동작이 있습니다.
32좋아요 43130일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
NikitaMasev/flutter_ticket_material open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A ticket view widget.
Plugin was tested on following platforms:
The support of MacOS is not guaranteed, but you can try to build it.
Also on web platform it's does not work.
To use this plugin, add universal_navigation as a dependency in your pubspec.yaml file.
Add dependency into pubspec.yaml.
dependencies:
ticket_material:
Create a page.
class ExamplePage extends StatefulWidget {
static final routeName = '/example';
@override
_ExamplePageState createState() => _ExamplePageState();
}
class _ExamplePageState extends State<ExamplePage> {
final colorBg = Colors.grey[300];
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: colorBg,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: TicketMaterial(
height: 150,
colorBackground: Colors.blue,
leftChild: _buildLeft(),
rightChild: _buildRight(),
),
),
),
);
}
Widget _buildLeft() {
return Container(
child: Center(
child: Text('LEFT PART'),
),
);
}
Widget _buildRight() {
return Container(
child: Center(
child: Icon(Icons.airplanemode_active),
),
);
}
}
Result:
With tap animation:
Full example with ticket_material you can check by this link.
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗