Home
last modified time | relevance | path

Searched refs:scrollable (Results 1 – 25 of 115) sorted by relevance

12345

/third_party/flutter/flutter/packages/flutter/test/widgets/
Dclamp_overscrolls_test.dart67 ScrollableState scrollable = tester.state(find.byType(Scrollable));
71 expect(scrollable.position.pixels, lessThan(0.0));
76 expect(scrollable.position.pixels, greaterThan(0.0));
82 scrollable = scrollable = tester.state(find.byType(Scrollable));
86 expect(scrollable.position.pixels, equals(0.0));
91 expect(scrollable.position.pixels, equals(50.0));
98 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
100 expect(scrollable.position.pixels, equals(initialOffset));
102 expect(scrollable.position.pixels, equals(expectedOffset));
Dscroll_interaction_test.dart21 final ScrollableState scrollable =
24 expect(scrollable.position.pixels, equals(0.0));
30 expect(scrollable.position.pixels, greaterThan(0.0));
32 final double oldOffset = scrollable.position.pixels;
38 expect(scrollable.position.pixels, greaterThan(oldOffset));
Dlist_view_relayout_test.dart184 testWidgets('Overflowing ListView should become scrollable', (WidgetTester tester) async {
201 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
202 expect(scrollable.position.maxScrollExtent, 0.0);
217 expect(scrollable.position.maxScrollExtent, 100.0);
Dscroll_view_test.dart263 final Scrollable scrollable = tester.widget(find.byType(Scrollable));
264 expect(scrollable.controller, primaryScrollController);
278 final Scrollable scrollable = tester.widget(find.byType(Scrollable));
279 expect(scrollable.controller, primaryScrollController);
293 final Scrollable scrollable = tester.widget(find.byType(Scrollable));
294 expect(scrollable.controller, primaryScrollController);
327 testWidgets('Primary ListViews are always scrollable', (WidgetTester tester) async {
332 testWidgets('Non-primary ListViews are not always scrollable', (WidgetTester tester) async {
337 testWidgets('Defaulting-to-primary ListViews are always scrollable', (WidgetTester tester) async {
342 …testWidgets('Defaulting-to-not-primary ListViews are not always scrollable', (WidgetTester tester)…
Dlist_view_builder_test.dart96 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
97 scrollable.position.jumpTo(newScrollOffset);
170 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
171 scrollable.position.jumpTo(newScrollOffset);
233 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
234 scrollable.position.jumpTo(newScrollOffset);
Dscroll_events_test.dart32 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
33scrollable.position.animateTo(newScrollOffset, duration: duration, curve: Curves.linear).whenCompl…
38 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
39 scrollable.position.jumpTo(newScrollOffset);
Dscrollable_test.dart11 Future<void> pumpTest(WidgetTester tester, TargetPlatform platform, {bool scrollable = true}) async…
17 physics: scrollable ? null : const NeverScrollableScrollPhysics(),
122 // The only applied velocity to the scrollable is the second fling that was in the
242 await pumpTest(tester, TargetPlatform.fuchsia, scrollable: false);
Dscrollable_list_hit_testing_test.dart194 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
195 expect(scrollable.position.pixels, equals(0.0));
Dlist_view_viewporting_test.dart103 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
104 scrollable.position.jumpTo(600.0); // now only 3 should fit, numbered 3-5.
166 final ScrollableState scrollable = tester.state(find.byType(Scrollable));
167 scrollable.position.jumpTo(600.0); // now only 4 should fit, numbered 2-5.
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dscrollable.dart29 /// scrollable content is displayed.
34 /// [Scrollable] implements the interaction model for a scrollable widget,
69 /// * [SingleChildScrollView], which is a scrollable widget that has a single
140 /// scrollable should react to scroll requests (and possible overscroll)
141 /// even if the scrollable's contents fit without scrolling being necessary.
144 /// Builds the viewport through which the scrollable content is displayed.
159 /// Text fields with an overflow are usually scrollable to make sure that the
187 /// {@template flutter.widgets.scrollable.dragStartBehavior}
228 /// ScrollableState scrollable = Scrollable.of(context);
232 return widget?.scrollable;
[all …]
Dscroll_controller.dart15 /// Controls a scrollable widget.
19 /// be used to control multiple scrollable widgets, but some operations, such
21 /// single scrollable widget.
47 /// Creates a controller for a scrollable widget.
69 /// [PageStorage] and restore it if this controller's scrollable is recreated.
74 /// first time the controller's scrollable is created, since there's no
81 /// scrollable appears in the same route, to distinguish the [PageStorage]
115 /// The current scroll offset of the scrollable widget.
117 /// Requires the controller to be controlling exactly one scrollable widget.
205 /// used by the scrollable widgets they control. For example, [PageController]
[all …]
Dscroll_context.dart19 /// scrollable widget.
24 /// This context is typically different that the context of the scrollable
32 /// This context is typically the context of the scrollable widget itself. In
Dscroll_view.dart16 import 'scrollable.dart';
124 /// When this is true, the scroll view is scrollable even if it does not have
144 /// To force the scroll view to always be scrollable even if there is
154 /// be scrollable if there is insufficient content, regardless of the value of
231 /// {@macro flutter.widgets.scrollable.dragStartBehavior}
302 final Scrollable scrollable = Scrollable(
313 ? PrimaryScrollController.none(child: scrollable)
314 : scrollable;
406 /// two must be provided. Most of the higher-level scrollable widgets provide
412 /// generated semantics of each scrollable item with a semantic index. This can
[all …]
Dpage_view.dart26 import 'scrollable.dart';
138 /// this controller's scrollable is recreated.
143 /// controller's scrollable is created, since there's isn't a page to
150 /// scrollable appears in the same route, to distinguish the [PageStorage]
507 /// A scrollable list that works page by page.
526 /// * [SingleChildScrollView], when you need to make a single child scrollable.
527 /// * [ListView], for a scrollable list of boxes.
528 /// * [GridView], for a scrollable grid of boxes.
532 /// Creates a scrollable list that works page by page from an explicit [List]
553 /// Creates a scrollable list that works page by page using widgets that are
[all …]
Dscroll_metrics.dart95 /// The quantity of content conceptually "above" the viewport in the scrollable.
99 /// The quantity of content conceptually "inside" the viewport in the scrollable.
115 /// The quantity of content conceptually "below" the viewport in the scrollable.
Dlist_wheel_scroll_view.dart23 import 'scrollable.dart';
206 /// * [ListWheelScrollView], a scrollable view widget with fixed size items
304 /// `FixedExtent` refers to the fact that the scrollable items have the same size.
389 final _FixedExtentScrollableState scrollable = context;
390 return scrollable.itemExtent;
466 /// Must be used with a scrollable that uses a [FixedExtentScrollController].
490 // ballistics, which should put us back in range at the scrollable's boundary.
503 // parent physics' ballistics again which should put us on the scrollable's
924 /// [Viewport] in that it shows a subset of children in a scrollable based
930 /// * [ListWheelScrollView], widget that combines this viewport with a scrollable.
/third_party/flutter/flutter/packages/flutter/lib/src/cupertino/
Drefresh.dart98 // This keeps track of the previously applied scroll offsets to the scrollable
230 /// that still lets the scrollable overscroll in front of this sliver (such as
257 /// [AlwaysScrollableScrollPhysics]) while constructing the scrollable.
259 /// the scrollable.
264 /// sliver such as [CupertinoSliverNavigationBar] and your main scrollable
274 /// instead of being an overlay on top of the scrollable, the
275 /// [CupertinoSliverRefreshControl] is part of the scrollable and actively occupies
276 /// scrollable space.
306 /// The amount of overscroll the scrollable must be dragged to trigger a reload.
Dscrollbar.dart25 // top edge of the scrollable, measured when the vertical scrollbar overscrolls
41 /// * [ListView], which display a linear, scrollable list of children.
42 /// * [GridView], which display a 2 dimensional, scrollable array of children.
71 /// manage the ScrollController and either pass it to a scrollable descendant
/third_party/flutter/flutter/examples/catalog/lib/
Dexpansion_tile_sample.dart108 When displayed within a scrollable that creates its list items lazily,
109 like a scrollable list created with `ListView.builder()`, ExpansionTiles
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Dlist_wheel_viewport.dart59 /// Takes a scrollable set of fixed sized [RenderBox]es and renders them
62 /// It starts with the first scrollable item in the center of the main axis
63 /// and ends with the last scrollable item in the center of the main axis. This
64 /// is in contrast to typical lists that start with the first scrollable item
65 /// at the start of the main axis and ends with the last scrollable item at the
75 /// 1. The **scrollable layout coordinates**. This coordinate system is used to
77 /// offset from the beginning of the scrollable list at (0.0, 0.0).
79 /// The list is scrollable from the start of the first child item to the
88 /// This system is the **scrollable layout coordinates** translated by the
92 /// Because the viewport is centered at the scrollable list's scroll offset
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dscrollbar.dart29 /// * [ListView], which display a linear, scrollable list of children.
30 /// * [GridView], which display a 2 dimensional, scrollable array of children.
Drefresh_indicator.dart16 // displacement, as a percentage of the scrollable's container extent.
39 // The state machine moves through these modes only when the scrollable
56 /// scrollable's contents and then complete the [Future] it returns. The refresh
70 /// always scrollable and, therefore, can trigger the [RefreshIndicator].
82 /// around a [ScrollView] because it's a part of the scrollable instead of
/third_party/flutter/flutter/examples/stocks/test_driver/
Dscroll_perf_test.dart25 // Find the scrollable stock list
/third_party/flutter/flutter/dev/manual_tests/lib/
Doverlay_geometry.dart175 final ScrollableState scrollable = Scrollable.of(target.currentContext);
176 markersScrollOffset = scrollable.position.pixels;
/third_party/flutter/flutter/packages/flutter/lib/src/gestures/
Ddrag.dart13 /// scrollable.

12345