social_media_widgets
一個用於收集常見流行社交媒體組件的新 Flutter 套件,例如 Instagram 故事滑動和 Snapchat 屏幕關閉功能。
GursheeshSingh/social_media_widgets open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A new flutter package for collection of common popular social media widgets
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SnapchatDismiss(
child: Screen('Screen', Colors.redAccent),
),
),
);
Here we are navigating to another screen and applying the snapchat screen dismiss
https://github.com/GursheeshSingh/social_media_widgets/blob/master/screenshots/screenshot1.gif
Navigator.push(
context,
PageRouteBuilder(
opaque: false,
pageBuilder: (_, __, ___) =>
SnapchatDismiss(child: Screen('Screen', Colors.redAccent),)
),
);
Here we are navigating to another screen and applying the snapchat screen dismiss and with the previous screen as background when we dismiss
https://github.com/GursheeshSingh/social_media_widgets/blob/master/screenshots/screenshot2.gif
Navigator.push(
context,
PageRouteBuilder(
opaque: false,
pageBuilder: (_, __, ___) => SnapchatDismiss(
dismissHeight: 250,
child: Screen('Screen', Colors.redAccent),
),
),
);
Here we are navigating to another screen and applying the snapchat screen dismiss and this will require more drag than default to dismiss screen
https://github.com/GursheeshSingh/social_media_widgets/blob/master/screenshots/screenshot3.gif
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => InstagramStorySwipe(
children: <Widget>[
Screen('Screen 1', Colors.lightBlueAccent),
Screen('Screen 2', Colors.redAccent),
Screen('Screen 3', Colors.greenAccent),
],
),
),
);
https://github.com/GursheeshSingh/social_media_widgets/blob/master/screenshots/screenshot4.gif
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => InstagramStorySwipe(
initialPage: 1,
children: <Widget>[
Screen('Screen 1', Colors.lightBlueAccent),
Screen('Screen 2', Colors.redAccent),
Screen('Screen 3', Colors.greenAccent),
],
),
),
);
https://github.com/GursheeshSingh/social_media_widgets/blob/master/screenshots/screenshot5.gif
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (_, __, ___) => SnapchatDismiss(
child: InstagramStorySwipe(
initialPage: 1,
children: <Widget>[
Screen('Screen 1', Colors.lightBlueAccent),
Screen('Screen 2', Colors.redAccent),
Screen('Screen 3', Colors.greenAccent),
],
),
),
),
);
https://github.com/GursheeshSingh/social_media_widgets/blob/master/screenshots/screenshot6.gif