video_walkthrough 1.0.2 copy "video_walkthrough: ^1.0.2" to clipboard
video_walkthrough: ^1.0.2 copied to clipboard

This a a customizable animated video walkthrough library written in dart.

example/example.dart

import 'package:flutter/material.dart';
import 'package:video_walkthrough/video_walkthrough.dart';
import 'package:video_walkthrough/walkthrough.dart';

class TestScreen extends StatelessWidget {
  TestScreen({Key? key}) : super(key: key);

  /*here we have a list of OnbordingScreen which we want to have, each OnbordingScreen have a imagePath,title and an desc.
      */
  final List<Walkthrough> list = [
    Walkthrough(
      title: "Title 1",
      content: "Content 1",
    ),
    Walkthrough(
      title: "Title 2",
      content: "Content 2",
    ),
    Walkthrough(
      title: "Title 3",
      content: "Content 3",
    ),
    Walkthrough(
      title: "Title 4",
      content: "Content 4",
    ),
  ];


  @override
  Widget build(BuildContext context) {
    /* remove the back button in the AppBar is to set automaticallyImplyLeading to false
  here we need to pass the list and the route for the next page to be opened after this. */
    return  VideoWalkThrough(

      video: "assets/video.mp4", // string of video that will show up
      volume: 0, // volume of video that will show up
      walkthroughList: list, //list of content put it here
      pageRoute: MaterialPageRoute(builder: (context) =>  TestScreen()), // the screen that you will navigate to it after end



    );
  }
}
12
likes
60
points
14
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This a a customizable animated video walkthrough library written in dart.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, video_player

More

Packages that depend on video_walkthrough