Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 1.68 KB

README.md

File metadata and controls

67 lines (49 loc) · 1.68 KB

YouTube Shorts Clone - in Flutter

This is a Flutter application that replicates the functionality of YouTube Shorts. It allows users to browse and play short videos.

Installation

  1. Ensure that you have Flutter SDK installed. If not, follow the official Flutter installation guide: Flutter Installation

  2. Clone the repository:

    git clone https://github.com/suryagowda/youtube.git
    
  3. Navigate to the project directory:

    cd your-repo
    
  4. Fetch the project dependencies:

    flutter pub get
    

Running the App

  1. Connect a physical device or start an emulator, and then run the app using the following command:
    flutter run

Project code Structure :

├── lib/
│ ├── main.dart
│ ├── api/
│ │ └── api_service.dart
│ └── screens/
│ ├── video_list_screen.dart
│ └── video_player_screen.dart
├── android/
│ └── ...
├── ios/
│ └── ...
├── assets/
│ └── ...
├── test/
│ └── ...
├── pubspec.yaml
└── README.md


Features:

  • Browse and play short videos
  • Infinite scrolling to load more videos
  • Smooth video playback with play/pause functionality
  • Video thumbnail preview

Major Widgets Used:

  • 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.

demo :

Untitled.mp4