web_custom_components 0.0.3 copy "web_custom_components: ^0.0.3" to clipboard
web_custom_components: ^0.0.3 copied to clipboard

Platformweb

Web custom Components for your website.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:web_components/web_components.dart';

void main() {
  runApp(const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: MyApp()));
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Column(
        children: [
          HeaderWidget(
            headerTitle: 'Home',
            backgroundColor: Colors.black,
            centerHeader: true,
            headerStyle: TextStyle(color: Colors.white, fontSize: 20),
            prefixWidget: Icon(Icons.menu,color:Colors.white,size: 28,),
            suffixWidget: Icon(Icons.person,color:Colors.white,size: 28,),
          )
        ],
      ),
    );
  }
}
3
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Web custom Components for your website.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on web_custom_components