Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tik Tok swipe up UI #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ A collection of Login Screens, Buttons, Loaders and Widgets with attractive UIs,

## Screenshots And Usage

## Tik Tok Swipe Up

tik tok like Flutter Swipe Up UI using pageView widget.

![Screenshots on iOS](./screenshots/swipe_up.gif)

## SlideListView

A widget that can be used to present two different views that can be toggled using a Floating Action Button. The views toggle with a nice cube-rotation animation.
Expand Down
170 changes: 170 additions & 0 deletions lib/tiktok_swipe/swipe.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
import 'package:flutter/material.dart';

void main() => runApp(Swipe());

class Swipe extends StatelessWidget {
final controller = PageController(initialPage: 0);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: PageView(
scrollDirection: Axis.vertical,
controller: controller,
children: [
Container(
color: Colors.orange.shade100,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.red.shade200,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.red.shade300,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.red.shade400,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
fontSize: 50),
),
],
),
),
Container(
color: Colors.green.shade300,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.green.shade600,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.green.shade900,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
fontSize: 50),
),
],
),
),
Container(
color: Colors.blue.shade200,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.blue.shade600,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 50),
),
],
),
),
Container(
color: Colors.blue.shade900,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Swipe Up!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
fontSize: 50),
),
],
),
)
],
),
),
);
}
}
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -99,7 +99,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -134,7 +134,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
typed_data:
dependency: transitive
description:
Expand Down
Binary file added screenshots/swipe_up.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.