leapfrog_web_component 0.0.2 copy "leapfrog_web_component: ^0.0.2" to clipboard
leapfrog_web_component: ^0.0.2 copied to clipboard

Platformweb

This Web Component is a reusable, modular UI element crafted as part of a scalable frontend system for a website built at Leapfrog. Designed with performance, maintainability, and consistency in mind, [...]

example/lib/main.dart

// ignore_for_file: implementation_imports

import 'package:flutter/material.dart';
import 'package:leapfrog_web_component_example/route/app_router.dart';
import 'package:leapfrog_web_component_example/wrap_with_drawer.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple)),
      routerConfig: router,
      //home: const HomeScreen(),
    );
  }
}

class HomeScreen extends StatefulWidget {
  const HomeScreen({super.key});

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

class _MyHomePageState extends State<HomeScreen> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(body: WrapWithDrawer(pageTitle: "Home Screen", child: Center(child: Text("Home Screen"))));
  }
}
1
likes
140
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

This Web Component is a reusable, modular UI element crafted as part of a scalable frontend system for a website built at Leapfrog. Designed with performance, maintainability, and consistency in mind, it encapsulates both logic and styling to ensure a seamless user experience across the entire platform.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on leapfrog_web_component

Packages that implement leapfrog_web_component