pastel_widget

Last updated:

0 purchases

pastel_widget Image
pastel_widget Images
Add to Cart

Description:

pastel widget

Pastel Widget #
Pastel Widget is a set of simple but useful widget for your flutter application.
Getting Started #
flutter pub add pastel_widget
copied to clipboard
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),
),
),
);
}
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.