Last updated:
0 purchases
edmax super widget lite
Edmax Super Widget Lite #
A Flutter package that provides a set of pre-built widgets designed for efficiency and performance. The package includes customizable hero sections, video players, and image widgets to streamline development and improve user experience.
Features #
SWHero: A versatile hero widget with support for background gradients, blurriness, and media content (images and videos).
SWVideo: A video player widget with support for autoplay, muting, and custom video controls.
SWImage: A simple image widget that supports responsive resizing and background image fitting.
Installation #
To use this package in your Flutter project, add the following dependency to your pubspec.yaml:
dependencies:
edmax_super_widget_lite: ^1.0.0
copied to clipboard
Then run:
flutter pub get
copied to clipboard
Usage #
SWHero #
The SWHero widget allows you to create a hero section with customizable backgrounds and media. It supports both image and video media and provides a flexible layout for adding actions.
import 'package:flutter/material.dart';
import 'package:edmax_super_widget_lite/edmax_super_widget_lite.dart';
import 'package:google_fonts/google_fonts.dart';
class MyHomePage extends StatefulWidget {
// Your existing code...
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Edmax Super Widget"),
),
body: ListView(
children: [
// Hero Section with Video
SWHero(
responsive: true,
blurryBackground: false,
title: "A Flutter Package 'Edmax Super Widget' Lite",
description: "Providing pre-built widgets focusing on efficiency and performance.",
media: Uri.parse('https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
actions: [
Text("Examples", style: GoogleFonts.poppins(textStyle: TextStyle(color: Colors.white, fontSize: 15))),
"Learn More"
],
actionsOrientation: ActionsOrientation.horizontal,
action: (index) {
// Handle action
},
),
// Hero Section with Image
SWHero(
responsive: true,
blurryBackground: false,
title: "Another Hero Section",
description: "With different media content.",
media: Uri.parse('https://th.bing.com/th/id/OIP.6bbE2siJf7TZKeEmByhZqQHaEK?w=328&h=184&c=7&r=0&o=5&dpr=1.3&pid=1.7'),
actions: [
Text("Examples", style: GoogleFonts.poppins(textStyle: TextStyle(color: Colors.white, fontSize: 15))),
"Learn More"
],
actionsOrientation: ActionsOrientation.horizontal,
action: (index) {
// Handle action
},
),
// Video Player
SWVideo(
uri: Uri.parse('https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
responsive: true,
height: 200,
autoplay: true,
muted: true,
),
],
),
floatingActionButton: FloatingActionButton(
onPressed: () {
// Increment counter
},
tooltip: 'Increment',
child: Icon(Icons.add),
),
);
}
}
copied to clipboard
SWVideo #
The SWVideo widget plays a video with options for autoplay, muting, and custom controls.
SWVideo(
uri: Uri.parse('https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
responsive: true,
height: 200,
autoplay: true,
muted: true,
)
copied to clipboard
SWImage #
The SWImage widget displays an image with options for responsive sizing and background image fitting.
SWImage(
url: 'https://example.com/image.png',
responsive: true,
width: 200,
height: 200,
)
copied to clipboard
Contributing #
Contact [email protected] for Bug report, Contribution and Support.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.