vtnet_components 0.0.4 copy "vtnet_components: ^0.0.4" to clipboard
vtnet_components: ^0.0.4 copied to clipboard

Package for all vtnet component

example/lib/main.dart

// ignore_for_file: depend_on_referenced_packages

import 'package:flutter/material.dart';
import 'package:vtnet_components/vtnet_components.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 HomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Home Page'),
      ),
      body: const Padding(
        padding: EdgeInsets.symmetric(horizontal: 20),
        child: Column(
          children: [
            SizedBox(
              height: 50,
            ),
            BaseToast(
                toastType: ToastType.info,
                message: 'ToastType.info',
                buttonTitle: 'Button',
                isHasAction: true,
                isHasTrailing: true),
            SizedBox(
              height: 10,
            ),
            BaseToast(
              toastType: ToastType.warning,
              message: 'ToastType.warning',
              buttonTitle: 'Button',
              isHasAction: true,
            ),
            SizedBox(
              height: 10,
            ),
            BaseToast(
                toastType: ToastType.error,
                message: 'ToastType.error',
                buttonTitle: 'Button',
                isHasTrailing: true),
            SizedBox(
              height: 10,
            ),
            BaseToast(
                toastType: ToastType.success,
                message: 'ToastType.success',
                buttonTitle: 'Button'),
          ],
        ),
      ),
    );
  }
}
3
likes
110
pub points
24%
popularity

Publisher

unverified uploader

Package for all vtnet component

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on vtnet_components