Show some 💙, 👍 the package & ⭐️ the repo to support the project
- Support for local and network images
- Support for youtube videos
- Support for Markdown
- Sliver app bar
- Input Json formatted data
There are two ways to use Easy Presentation.
EasyPresentationApp.launchApp(
context,
presentationData: PresentationData(),
title: 'Title',
bgImage: 'https://nicolasgallagher.com/flexible-css-cover-images/cover.jpg',
);
EasyPresentationApp(
title: 'Title',
bgImage: 'https://nicolasgallagher.com/flexible-css-cover-images/cover.jpg',
presentationData: PresentationData(),
);
Prepare model list and pass it to the EasyPresentationApp()
widget.
final presentationData = [
PresentationData(
title: 'Lorem Ipsum',
imgSrc: 'assets/images/home/tips.jpg',
youtubeLink: "https://youtu.be/YGbiPnxUG9U",
detailText: 'Lorem Ipsum is simply dummy text ....',
),
PresentationData(
title: 'Lorem Ipsum',
imgSrc: 'https://nicolasgallagher.com/flexible-css-cover-images/cover.jpg',
detailText: 'Lorem Ipsum is simply dummy text ....',
),
PresentationData(
title: 'Lorem Ipsum',
imgSrc: 'https://nicolasgallagher.com/flexible-css-cover-images/cover.jpg',
subCategories: [
PresentationData(
title: 'Lorem Ipsum',
imgSrc: 'https://nicolasgallagher.com/flexible-css-cover-images/cover.jpg',
youtubeLink: "https://youtu.be/YGbiPnxUG9U",
detailText: 'Lorem Ipsum is simply dummy text ....',
),
PresentationData(
title: 'Lorem Ipsum',
imgSrc: 'assets/images/home/tips.jpg',
imageMode: ImageMode.landscape.name,
youtubeLink: "https://youtu.be/YGbiPnxUG9U",
detailText: 'Lorem Ipsum is simply dummy text ....',
),
PresentationData(
title: 'Lorem Ipsum',
imgSrc: 'https://nicolasgallagher.com/flexible-css-cover-images/cover.jpg',
youtubeLink: "https://youtu.be/YGbiPnxUG9U",
detailText: 'Lorem Ipsum is simply dummy text ....',
),
],
),
];
See Example for better understanding.