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

A simple but useful widget for your Flutter project.

Pastel Widget #

Pastel Widget is a set of simple but useful widget for your flutter application.

Getting Started #

flutter pub add pastel_widget

Widgets #

MultiAutocomplete #

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

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

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

  @override
  Widget build(BuildContext context) {
    final options = [
      const MapEntry('SM3', 'SM3'),
      const MapEntry('SM5', 'SM5'),
      const MapEntry('SM6', 'SM6'),
      const MapEntry('SM7', 'SM7'),
      const MapEntry('SM8', 'SM8'),
      const MapEntry('SM9', 'SM9'),
    ];

    callback(List<String> value) {
      print(value);
    }

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Auto Complete Test'),
        ),
        body: Container(
          margin: const EdgeInsets.all(20),
          child:
              MultiAutocomplete<String>(options: options, callback: callback),
        ),
      ),
    );
  }
}
1
likes
150
pub points
0%
popularity

Publisher

unverified uploader

A simple but useful widget for your Flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

flutter

More

Packages that depend on pastel_widget