edmax_super_widget_lite 0.0.1 copy "edmax_super_widget_lite: ^0.0.1" to clipboard
edmax_super_widget_lite: ^0.0.1 copied to clipboard

Efficient pre-built widgets to save you time

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:edmax_super_widget_lite/edmax_super_widget_lite.dart';
import 'package:google_fonts/google_fonts.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Edmax Super Widget'),
      debugShowCheckedModeBanner: false,
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: ListView(
        scrollDirection: Axis.vertical,
        children: [
          Text("[Hero Section --SWHero()]"),
          SWHero(
            //key: vidKey,
            //borderRadius: BorderRadius.all(Radius.circular(10)),
            responsive: true,
            blurryBackground: false,
            title: "A Flutter Package ''Edmax Super widget'' Lite ",
            description:
                "Providing you with pre built widgets bootstrap like mainly focusing on time efficiency and performance ",
            media: Uri.parse(
                'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
            actions: [
              Text(
                "Examples",
                textAlign: TextAlign.center,
                style: GoogleFonts.poppins(
                    textStyle:
                        const TextStyle(color: Colors.white, fontSize: 15)),
              ),
              "Learn More"
            ],
            actionsOrientation: ActionsOrientation.horizontal,
            action: (index) {
              setState(() {
                _counter = index;
              });
            },
          ),
          Text("[Hero Section --SWHero()]"),
          SWHero(
            //key: vidKey,
            //borderRadius: BorderRadius.all(Radius.circular(10)),
            responsive: true,
            blurryBackground: false,
            title: "A Flutter Package ''Edmax Super widget'' Lite ",
            description:
                "Providing you with pre built widgets bootstrap like mainly focusing on time efficiency and performance ",
            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",
                textAlign: TextAlign.center,
                style: GoogleFonts.poppins(
                    textStyle:
                        const TextStyle(color: Colors.white, fontSize: 15)),
              ),
              "Learn More"
            ],
            actionsOrientation: ActionsOrientation.horizontal,
            action: (index) {
              setState(() {
                _counter = index;
              });
            },
          ),
          Text("[VIDEO --SWVideo()]"),
          SWVideo(
              uri: Uri.parse(
                  'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
              responsive: true,
              height: 200,
              autoplay: true,
              muted: true),
          const Text(
            'You have pushed the button this many times:',
          ),
          Text(
            '$_counter',
            style: Theme.of(context).textTheme.headlineMedium,
          ),
        ],
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}
0
likes
100
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Efficient pre-built widgets to save you time

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts, video_player

More

Packages that depend on edmax_super_widget_lite