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

init (#82348)

parent 4ab29de6
......@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui' show window;
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
......@@ -90,24 +88,21 @@ void main() {
locale: const Locale('en', 'us'),
home: Directionality(
textDirection: TextDirection.ltr,
child: MediaQuery(
data: MediaQueryData.fromWindow(window),
child: Material(
child: Center(
child: Theme(
data: theme,
child: RawChip(
showCheckmark: true,
onDeleted: () { },
tapEnabled: true,
avatar: const Placeholder(),
deleteIcon: const Placeholder(),
isEnabled: true,
selected: false,
label: const Text('Chip'),
onSelected: (bool newValue) { },
onPressed: null,
),
child: Material(
child: Center(
child: Theme(
data: theme,
child: RawChip(
showCheckmark: true,
onDeleted: () { },
tapEnabled: true,
avatar: const Placeholder(),
deleteIcon: const Placeholder(),
isEnabled: true,
selected: false,
label: const Text('Chip'),
onSelected: (bool newValue) { },
onPressed: null,
),
),
),
......@@ -141,26 +136,23 @@ void main() {
return MaterialApp(
home: Directionality(
textDirection: TextDirection.ltr,
child: MediaQuery(
data: MediaQueryData.fromWindow(window),
child: Material(
child: Center(
child: Theme(
data: theme,
child: ChipTheme(
data: customTheme,
child: RawChip(
showCheckmark: true,
onDeleted: () { },
tapEnabled: true,
avatar: const Placeholder(),
deleteIcon: const Placeholder(),
isEnabled: true,
selected: value,
label: const Text('$value'),
onSelected: (bool newValue) { },
onPressed: null,
),
child: Material(
child: Center(
child: Theme(
data: theme,
child: ChipTheme(
data: customTheme,
child: RawChip(
showCheckmark: true,
onDeleted: () { },
tapEnabled: true,
avatar: const Placeholder(),
deleteIcon: const Placeholder(),
isEnabled: true,
selected: value,
label: const Text('$value'),
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