This is a Flutter application that replicates the functionality of YouTube Shorts. It allows users to browse and play short videos.
-
Ensure that you have Flutter SDK installed. If not, follow the official Flutter installation guide: Flutter Installation
-
Clone the repository:
git clone https://github.com/suryagowda/youtube.git
-
Navigate to the project directory:
cd your-repo
-
Fetch the project dependencies:
flutter pub get
- Connect a physical device or start an emulator, and then run the app using the following command:
flutter run
├── lib/
│ ├── main.dart
│ ├── api/
│ │ └── api_service.dart
│ └── screens/
│ ├── video_list_screen.dart
│ └── video_player_screen.dart
├── android/
│ └── ...
├── ios/
│ └── ...
├── assets/
│ └── ...
├── test/
│ └── ...
├── pubspec.yaml
└── README.md
- Browse and play short videos
- Infinite scrolling to load more videos
- Smooth video playback with play/pause functionality
- Video thumbnail preview
- MaterialApp: Provides the app's theme and navigation structure.
- ListView.builder: Renders the video list and supports infinite scrolling.
- VideoPlayer: Displays the video content and handles playback.
- PageView: Enables swiping between videos in the VideoPlayerScreen.