mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
http://www.google.com/design/spec/components/chips.html#chips-behavior This patch adds support for deletable and non-deleteable chips, but doesn't yet add support for contact chips. Also, demo the chips in a new Material Gallery app that will let us demo our gallery of widgets in a single app.
25 lines
616 B
Dart
25 lines
616 B
Dart
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'chip_demo.dart';
|
|
import 'gallery_page.dart';
|
|
import 'widget_demo.dart';
|
|
|
|
final List<WidgetDemo> _kDemos = <WidgetDemo>[
|
|
kChipDemo
|
|
];
|
|
|
|
void main() {
|
|
Map<String, RouteBuilder> routes = new Map<String, RouteBuilder>();
|
|
for (WidgetDemo demo in _kDemos)
|
|
routes[demo.route] = (_) => new GalleryPage(demo: demo);
|
|
|
|
runApp(new MaterialApp(
|
|
title: 'Material Gallery',
|
|
routes: routes
|
|
));
|
|
}
|