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
c8310468
Unverified
Commit
c8310468
authored
Feb 02, 2021
by
Alabhya
Committed by
GitHub
Feb 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Api docs] Added Vertical Divider dartpad demo (#75230)
parent
2dfc86ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
divider.dart
packages/flutter/lib/src/material/divider.dart
+42
-0
No files found.
packages/flutter/lib/src/material/divider.dart
View file @
c8310468
...
...
@@ -230,6 +230,48 @@ class Divider extends StatelessWidget {
/// The box's total width is controlled by [width]. The appropriate
/// padding is automatically computed from the width.
///
/// {@tool dartpad --template=stateless_widget_scaffold}
///
/// This sample shows how to display a [VerticalDivider] between an 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.
///
/// ```dart
/// Widget build(BuildContext context) {
/// return Container(
/// padding: const EdgeInsets.all(10),
/// child: Row(
/// children: <Widget>[
/// Expanded(
/// child: Container(
/// decoration: BoxDecoration(
/// borderRadius: BorderRadius.circular(10),
/// color: Colors.deepPurpleAccent,
/// ),
/// ),
/// ),
/// const VerticalDivider(
/// color: Colors.grey,
/// thickness: 1,
/// indent: 20,
/// endIndent: 0,
/// width: 20,
/// ),
/// Expanded(
/// child: Container(
/// decoration: BoxDecoration(
/// borderRadius: BorderRadius.circular(10),
/// color: Colors.deepOrangeAccent,
/// ),
/// ),
/// ),
/// ],
/// ),
/// );
/// }
/// ```
/// {@end-tool}
/// See also:
///
/// * [ListView.separated], which can be used to generate vertical dividers.
...
...
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