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, [...]

leapfrog_web_component

Flutter package to create slidable drawer specially for web.

Web

web_drawer_gif

Features #

  • This widget will provice you to user drawer in flutter web

Getting Start #

  • To use this dependency, add it to your pubspec.yaml file:

Basic Example #

class WrapWithDrawer extends StatelessWidget {
  const WrapWithDrawer({super.key, required this.child, required this.pageTitle});
  final Widget child;
  final String pageTitle;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CustomDrawer(
        menuItems: menuItems,
        onMenuTap: (route) => context.push(route),
        profileImageUrl: 'assets/user_place_holder.png',
        onLogOutClick: () {},
        isShowUserProfile: true,
        profileBackground: Colors.black,
        drawerIconSize: 26,
        userFirstName: "John",
        userLastName: "Doe",
        titleName: pageTitle,
        isSearchShow: true,
        headerColor: Colors.blue,
        drawerColor: Colors.black,
        version: "1.0.0",
        titleStyle: const TextStyle(color: Colors.white, fontSize: 20),
        userNameStyle: const TextStyle(color: Colors.white, fontSize: 16),
        drawerIconColor: Colors.red,
        userEmail: "[email protected]",
        drawerTextSelectedColor: Colors.white,
        prefix: SizedBox(),
        isShowClearIcon: false,
        isShowUserName: true,
        //headerWidget: SizedBox.shrink(),
        drawerHeader: Column(
          children: [
            CircleAvatar(radius: 40, backgroundImage: AssetImage('assets/user_place_holder.png')),
            SizedBox(height: 10),
            Text("John Doe", style: TextStyle(color: Colors.white, fontSize: 16)),
            SizedBox(height: 10),
            Text("[email protected]", style: TextStyle(color: Colors.white, fontSize: 12)),
            SizedBox(height: 10),
          ],
        ),
        child: child,
      ),
    );
  }
}
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