video_walkthrough 1.0.2
video_walkthrough: ^1.0.2 copied to clipboard
This a a customizable animated video walkthrough library written in 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
);
}
}