Unverified Commit d8cdaba0 authored by nt4f04uNd's avatar nt4f04uNd Committed by GitHub

init (#82348)

parent 4ab29de6
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:ui' show window;
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -90,24 +88,21 @@ void main() { ...@@ -90,24 +88,21 @@ void main() {
locale: const Locale('en', 'us'), locale: const Locale('en', 'us'),
home: Directionality( home: Directionality(
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
child: MediaQuery( child: Material(
data: MediaQueryData.fromWindow(window), child: Center(
child: Material( child: Theme(
child: Center( data: theme,
child: Theme( child: RawChip(
data: theme, showCheckmark: true,
child: RawChip( onDeleted: () { },
showCheckmark: true, tapEnabled: true,
onDeleted: () { }, avatar: const Placeholder(),
tapEnabled: true, deleteIcon: const Placeholder(),
avatar: const Placeholder(), isEnabled: true,
deleteIcon: const Placeholder(), selected: false,
isEnabled: true, label: const Text('Chip'),
selected: false, onSelected: (bool newValue) { },
label: const Text('Chip'), onPressed: null,
onSelected: (bool newValue) { },
onPressed: null,
),
), ),
), ),
), ),
...@@ -141,26 +136,23 @@ void main() { ...@@ -141,26 +136,23 @@ void main() {
return MaterialApp( return MaterialApp(
home: Directionality( home: Directionality(
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
child: MediaQuery( child: Material(
data: MediaQueryData.fromWindow(window), child: Center(
child: Material( child: Theme(
child: Center( data: theme,
child: Theme( child: ChipTheme(
data: theme, data: customTheme,
child: ChipTheme( child: RawChip(
data: customTheme, showCheckmark: true,
child: RawChip( onDeleted: () { },
showCheckmark: true, tapEnabled: true,
onDeleted: () { }, avatar: const Placeholder(),
tapEnabled: true, deleteIcon: const Placeholder(),
avatar: const Placeholder(), isEnabled: true,
deleteIcon: const Placeholder(), selected: value,
isEnabled: true, label: const Text('$value'),
selected: value, onSelected: (bool newValue) { },
label: const Text('$value'), onPressed: null,
onSelected: (bool newValue) { },
onPressed: null,
),
), ),
), ),
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment