floating_ribbon
이미지 위에 떠 있는 리본을 만들기 위한 새로운 Flutter 패키지입니다.
이미지에 부유하는 리본을 쉽게 추가할 수 있는 Flutter 패키지입니다.
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
pub package Build Status LICENSE
A new Flutter package for creating floating ribbons on images.
https://github.com/101Loop/Floating-Ribbon/blob/master/example.gif?raw=true
dependencies:
floating_ribbon: any
In order to achieve the shimmering effect, you need to add a package in pubspec.yaml.
dependencies:
skeleton_text: any
The code to reproduce it,
import 'package:skeleton_text/skeleton_text.dart';
import 'package:floating_ribbon/floating_ribbon.dart';
FloatingRibbon(
height: 85,
width: 85,
childHeight: 75,
childWidth: 75,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: FlutterLogo(),
),
childDecoration: BoxDecoration(color: Colors.grey),
ribbon: SkeletonAnimation(
child: Center(
child: Text(
'Exclusive',
style: TextStyle(
color: Colors.white,
),
textAlign: TextAlign.center,
),
),
),
shadowHeight: 5,
);
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.