Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
d4c3c7ef
Unverified
Commit
d4c3c7ef
authored
Sep 08, 2021
by
creativecreatorormaybenot
Committed by
GitHub
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (Vertical)Divider samples & docs (#89062)
parent
34ba6473
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
divider.0.dart
examples/api/lib/material/divider/divider.0.dart
+2
-1
vertical_divider.0.dart
examples/api/lib/material/divider/vertical_divider.0.dart
+3
-3
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+1
-0
divider.dart
packages/flutter/lib/src/material/divider.dart
+5
-1
color_filter.dart
packages/flutter/lib/src/widgets/color_filter.dart
+1
-1
No files found.
examples/api/lib/material/divider/divider.0.dart
View file @
d4c3c7ef
...
...
@@ -68,7 +68,8 @@ class MyStatelessWidget extends StatelessWidget {
height:
20
,
thickness:
5
,
indent:
20
,
endIndent:
20
,
endIndent:
0
,
color:
Colors
.
black
,
),
// Subheader example from Material spec.
// https://material.io/components/dividers#types
...
...
examples/api/lib/material/divider/vertical_divider.0.dart
View file @
d4c3c7ef
...
...
@@ -12,7 +12,7 @@
//***************************************************************************
//* ▼▼▼▼▼▼▼▼ description ▼▼▼▼▼▼▼▼ (do not modify or remove section marker)
// This sample shows how to display a [VerticalDivider] between a
n
purple and orange box
// This sample shows how to display a [VerticalDivider] between a purple and orange box
// inside a [Row]. The [VerticalDivider] is 20 logical pixels in width and contains a
// horizontally centered black line that is 1 logical pixels thick. The grey
// line is indented by 20 logical pixels.
...
...
@@ -64,11 +64,11 @@ class MyStatelessWidget extends StatelessWidget {
),
),
const
VerticalDivider
(
color:
Colors
.
grey
,
width:
20
,
thickness:
1
,
indent:
20
,
endIndent:
0
,
width:
20
,
color:
Colors
.
grey
,
),
Expanded
(
child:
Container
(
...
...
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
d4c3c7ef
...
...
@@ -649,6 +649,7 @@ class _BottomSheetSuspendedCurve extends ParametricCurve<double> {
///
/// ** See code in examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.0.dart **
/// {@end-tool}
///
/// See also:
///
/// * [BottomSheet], which becomes the parent of the widget returned by the
...
...
packages/flutter/lib/src/material/divider.dart
View file @
d4c3c7ef
...
...
@@ -33,10 +33,12 @@ import 'theme.dart';
///
/// ** See code in examples/api/lib/material/divider/divider.0.dart **
/// {@end-tool}
///
/// See also:
///
/// * [PopupMenuDivider], which is the equivalent but for popup menus.
/// * [ListTile.divideTiles], another approach to dividing widgets in a list.
/// * [VerticalDivider], which is the vertical analog of this widget.
/// * <https://material.io/design/components/dividers.html>
class
Divider
extends
StatelessWidget
{
/// Creates a material design divider.
...
...
@@ -186,16 +188,18 @@ class Divider extends StatelessWidget {
/// padding is automatically computed from the width.
///
/// {@tool dartpad --template=stateless_widget_scaffold}
/// This sample shows how to display a [VerticalDivider] between a
n
purple and orange box
/// This sample shows how to display a [VerticalDivider] between a purple and orange box
/// inside a [Row]. The [VerticalDivider] is 20 logical pixels in width and contains a
/// horizontally centered black line that is 1 logical pixels thick. The grey
/// line is indented by 20 logical pixels.
///
/// ** See code in examples/api/lib/material/divider/vertical_divider.0.dart **
/// {@end-tool}
///
/// See also:
///
/// * [ListView.separated], which can be used to generate vertical dividers.
/// * [Divider], which is the horizontal analog of this widget.
/// * <https://material.io/design/components/dividers.html>
class
VerticalDivider
extends
StatelessWidget
{
/// Creates a material design vertical divider.
...
...
packages/flutter/lib/src/widgets/color_filter.dart
View file @
d4c3c7ef
...
...
@@ -24,7 +24,7 @@ import 'framework.dart';
/// ** See code in examples/api/lib/widgets/color_filter/color_filtered.0.dart **
///{@end-tool}
///
/// See
A
lso:
/// See
a
lso:
///
/// * [BlendMode], describes how to blend a source image with the destination image.
/// * [ColorFilter], which describes a function that modify a color to a different color.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment