개발자가 앱 내에서 인스타그램 스타일의 스토리나 왓츠앱과 유사한 상태를 구현할 수 있도록 해주는 매우 사용자 정의 가능한 Flutter 패키지입니다. 부드러운 전환, 스와이프 탐색 및 이미지, 비디오, 텍스트 등 커스텀 스토리 콘텐츠를 지원합니다. 크로스플랫폼 사용을 위해 설계되어 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스에서 원활하게 작동합니다. 유연한 스타일링과 이벤트 콜백을 통해 스토리 경험을 완전히 제어할 수 있습니다. 소셜 앱, 메시징 플랫폼 또는 동적이고 상호작용 가능한 스토리 피드가 필요한 모든 앱에 적합합니다.
A customizable flutter package that allows you to use Instagram like stories, or WhastApp like statuses in your Flutter app easily, made without using external dependencies.
Step 2: Call the stories plugin and use it. Can give Scaffold to each page, making it highly customizable.
Stories(
storyItemList: [
// First group of stories
StoryItem(
name: "First Story", // Name of first story
thumbnail: // Add icon to first story
stories: [
Page1(),
Page2(),
]),
// Second story group
StoryItem(
name: "Second Story",
thumbnail: // Add icon to first story
stories: [
Page1(),
Page2(),
Page3()
],
),
],
);
Example:
Stories(
displayProgress: true,
storyItemList: [
// First group of stories
StoryItem(
name: "First Story",
thumbnail: NetworkImage(
"https://assets.materialup.com/uploads/82eae29e-33b7-4ff7-be10-df432402b2b6/preview",
),
stories: [
// First story
Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage(
"https://wallpaperaccess.com/full/16568.png",
),
),
),
),
),
// Second story in first group
Scaffold(
body: Center(
child: Text(
"Second story in first group !",
style: TextStyle(
color: Color(0xff777777),
fontSize: 25,
),
),
),
),
]),
// Second story group
StoryItem(
name: "2nd",
thumbnail: NetworkImage(
"https://www.shareicon.net/data/512x512/2017/03/29/881758_cup_512x512.png",
),
stories: [
Scaffold(
body: Center(
child: Text(
"That's it, Folks !",
style: TextStyle(
color: Color(0xff777777),
fontSize: 25,
),
),
),
),
],
),
],
);