Home
last modified time | relevance | path

Searched refs:drawer (Results 1 – 25 of 51) sorted by relevance

123

/third_party/flutter/flutter/packages/flutter/test/widgets/
Ddrawer_test.dart28 drawer: const Text('drawer'),
36 expect(find.text('drawer'), findsNothing);
38 await tester.pump(); // drawer should be starting to animate in
39 expect(find.text('drawer'), findsOneWidget);
41 expect(find.text('drawer'), findsOneWidget);
43 await tester.pump(); // drawer should be starting to animate away
44 expect(find.text('drawer'), findsOneWidget);
46 expect(find.text('drawer'), findsNothing);
55 drawer: const Text('drawer'),
61 expect(find.text('drawer'), findsNothing);
[all …]
/third_party/skia/tests/
DRecordingXfermodeTest.cpp74 virtual const SkBitmap& recordAndReplay(const Drawer& drawer,
86 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, in recordAndReplay() argument
92 drawer.draw(&canvas, intoClip, mode); // Shouild be canvas-wide... in recordAndReplay()
111 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, in recordAndReplay() argument
119 drawer.draw(canvas, canvasRect, mode); in recordAndReplay()
140 const Drawer drawer; in DEF_TEST() local
142 BitmapBackedCanvasStrategy golden(drawer.imageInfo()); in DEF_TEST()
143 PictureStrategy picture(drawer.imageInfo()); in DEF_TEST()
154 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode); in DEF_TEST()
155 const SkBitmap& pictureBM = picture.recordAndReplay(drawer, clip, mode); in DEF_TEST()
DSerialProcsTest.cpp85 static sk_sp<SkPicture> make_pic(const std::function<void(SkCanvas*)>& drawer) { in make_pic() argument
87 drawer(rec.beginRecording(128, 128)); in make_pic()
/third_party/flutter/skia/tests/
DRecordingXfermodeTest.cpp72 virtual const SkBitmap& recordAndReplay(const Drawer& drawer,
84 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, in recordAndReplay() argument
90 drawer.draw(&canvas, intoClip, mode); // Shouild be canvas-wide... in recordAndReplay()
109 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, in recordAndReplay() argument
117 drawer.draw(canvas, canvasRect, mode); in recordAndReplay()
138 const Drawer drawer; in DEF_TEST() local
140 BitmapBackedCanvasStrategy golden(drawer.imageInfo()); in DEF_TEST()
141 PictureStrategy picture(drawer.imageInfo()); in DEF_TEST()
152 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode); in DEF_TEST()
153 const SkBitmap& pictureBM = picture.recordAndReplay(drawer, clip, mode); in DEF_TEST()
DSerialProcsTest.cpp85 static sk_sp<SkPicture> make_pic(const std::function<void(SkCanvas*)>& drawer) { in make_pic() argument
87 drawer(rec.beginRecording(128, 128)); in make_pic()
DGrCCPRTest.cpp871 CCPRPathDrawer drawer(sk_ref_sp(ctx), reporter, doStroke); in run() local
872 if (!drawer.valid()) { in run()
875 this->onRun(reporter, drawer); in run()
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Ddrawer.dart31 // https://material.io/design/components/navigation-drawer.html#specs
51 /// Drawers are typically used with the [Scaffold.drawer] property. The child of
52 /// the drawer is usually a [ListView] whose first child is a [DrawerHeader]
54 /// drawer children are often constructed with [ListTile]s, often concluding
57 /// An open drawer can be closed by calling [Navigator.pop]. For example
58 /// a drawer item might close the drawer when tapped:
66 /// Navigator.pop(context); // close the drawer
73 /// automatically handles the edge-swipe gesture to show the drawer.
77 /// * [Scaffold.drawer], where one specifies a [Drawer] so that it can be
80 /// display and animation of the drawer.
[all …]
Ddrawer_header.dart13 /// The top-most region of a material design drawer. The header's [child]
26 /// * <https://material.io/design/components/navigation-drawer.html>
28 /// Creates a material design drawer header.
41 /// Decoration for the main drawer header [Container]; useful for applying
57 /// The margin around the drawer header.
66 /// A widget to be placed inside the drawer header, inset by the [padding].
Dscaffold.dart20 import 'drawer.dart';
55 drawer,
528 if (hasChild(_ScaffoldSlot.drawer)) {
529 layoutChild(_ScaffoldSlot.drawer, BoxConstraints.tight(size));
530 positionChild(_ScaffoldSlot.drawer, Offset.zero);
937 /// left of the body (and often hidden on phones) using the [drawer]
960 this.drawer,
1000 /// [floatingActionButton] and [drawer]. If [resizeToAvoidBottomInset] is
1046 /// In the uncommon case that you wish to open the drawer manually, use the
1050 final Widget drawer;
[all …]
Duser_accounts_drawer_header.dart304 /// * [DrawerHeader], for a drawer header that doesn't show user accounts.
305 /// * <https://material.io/design/components/navigation-drawer.html#anatomy>
307 /// Creates a material design drawer header.
326 /// The margin around the drawer header.
Dabout.dart54 /// The icon to show for this drawer item.
62 /// The label to show on this drawer item.
70 /// This string is used in the default label for this drawer item (see
91 /// This is not necessarily the same as the icon shown on the drawer item
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/material/
Ddrawer_demo.dart16 static const String routeName = '/material/drawer';
74 Navigator.pop(context); // Dismiss the drawer.
76 content: Text("The drawer's items don't do anything"),
94 title: const Text('Navigation drawer'),
97 drawer: Drawer(
161 // The initial contents of the drawer.
176 // The drawer's "details" view.
215 label: 'Open drawer',
235 child: Text('Tap here to open the drawer',
/third_party/flutter/flutter/packages/flutter/test/material/
Ddrawer_test.dart19 drawer: Drawer(
66 drawer: Drawer(),
91 drawer: Drawer(),
136 drawer: Drawer(
140 onTap: () { Navigator.pop(context); }, // close drawer
Dscaffold_test.dart249 drawer: Drawer(
737 testWidgets('Open drawer hides underlying semantics tree', (WidgetTester tester) async {
750 drawer: Drawer(child: Text(drawerLabel)),
778 final Key drawer = UniqueKey();
840 drawer: Container(
841 key: drawer,
859 // open drawer
868 expect(tester.getRect(find.byKey(drawer)), const Rect.fromLTRB(596.0, 0.0, 800.0, 600.0));
883 final Key drawer = UniqueKey();
942 drawer: Container(
[all …]
Dapp_bar_test.dart254 // A drawer causes a leading hamburger.
255 drawer: const Drawer(),
275 // A drawer causes a leading hamburger.
276 drawer: const Drawer(),
529 drawer: Column(), // Doesn't really matter. Triggers a hamburger regardless.
965 testWidgets('AppBar updates when you add a drawer', (WidgetTester tester) async {
977 drawer: const Drawer(),
985 …testWidgets('AppBar does not draw menu for drawer if automaticallyImplyLeading is false', (WidgetT…
989 drawer: const Drawer(),
Dchip_test.dart628 testWidgets('Avatar drawer works as expected on RawChip', (WidgetTester tester) async {
660 // Avatar drawer should start out closed.
667 // Avatar drawer should start expanding.
701 // Avatar drawer should start out open.
708 // Avatar drawer should start contracting.
740 testWidgets('Delete button drawer works as expected on RawChip', (WidgetTester tester) async {
775 // Delete button drawer should start out closed.
782 // Delete button drawer should start expanding.
820 // Delete button drawer should start out open.
827 // Delete button drawer should start contracting.
/third_party/flutter/flutter/dev/benchmarks/microbenchmarks/lib/stocks/
Dlayout_bench.dart32 await tester.tapAt(const Offset(20.0, 40.0)); // Open drawer
33 await tester.pump(); // Start drawer animation
34 await tester.pump(const Duration(seconds: 1)); // Complete drawer animation
Dbuild_bench.dart31 await tester.tapAt(const Offset(20.0, 40.0)); // Open drawer
32 await tester.pump(); // Start drawer animation
33 await tester.pump(const Duration(seconds: 1)); // Complete drawer animation
Danimation_bench.dart61 await tester.tapAt(const Offset(780.0, 250.0)); // Close drawer
66 await tester.tapAt(const Offset(20.0, 50.0)); // Open drawer
/third_party/flutter/flutter/examples/flutter_gallery/test/demo/material/
Ddrawer_demo_test.dart16 await tester.tap(find.text('Tap here to open the drawer'));
/third_party/flutter/flutter/dev/benchmarks/complex_layout/lib/
Dmain.dart76 drawer: const GalleryDrawer(),
123 drawer: const GalleryDrawer(),
614 // typically, a drawer would have a fixed header with a scrolling body
617 key: const PageStorageKey<String>('gallery-drawer'),
/third_party/flutter/skia/gm/
Dshadermaskfilter.cpp314 for (const auto& drawer : gDrawers) { variable
326 drawer(canvas, dest, paint);
/third_party/flutter/flutter/dev/manual_tests/lib/
Dpage_view.dart134 drawer: _buildDrawer(),
/third_party/mindspore/mindspore/core/ir/
Dfunc_graph.h393 static void set_drawer(Drawer drawer) { drawer_ = drawer; } in set_drawer() argument
/third_party/flutter/flutter/examples/stocks/test/
Dicon_color_test.dart63 // drag the drawer out

123