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
57a13c3e
Unverified
Commit
57a13c3e
authored
Nov 02, 2020
by
Abhishek Ghaskata
Committed by
GitHub
Nov 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Scaffold to Tooltip code samples (#69532)
parent
a371fbcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
tooltip.dart
packages/flutter/lib/src/material/tooltip.dart
+19
-23
No files found.
packages/flutter/lib/src/material/tooltip.dart
View file @
57a13c3e
...
...
@@ -30,7 +30,7 @@ import 'tooltip_theme.dart';
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=EeEfD5fI-5Q}
///
/// {@tool dartpad --template=stateless_widget_
material
}
/// {@tool dartpad --template=stateless_widget_
scaffold_center
}
///
/// This example show a basic [Tooltip] which has a [Text] as child.
/// [message] contains your label to be shown by the tooltip when
...
...
@@ -38,17 +38,15 @@ import 'tooltip_theme.dart';
///
/// ```dart
/// Widget build(BuildContext context) {
/// return Center(
/// child: Tooltip(
/// message: "I am a Tooltip",
/// child: Text("Tap this text and hold down to show a tooltip."),
/// ),
/// return Tooltip(
/// message: "I am a Tooltip",
/// child: Text("Tap this text and hold down to show a tooltip."),
/// );
/// }
/// ```
/// {@end-tool}
///
/// {@tool dartpad --template=stateless_widget_
material
}
/// {@tool dartpad --template=stateless_widget_
scaffold_center
}
///
/// This example covers most of the attributes available in Tooltip.
/// `decoration` has been used to give a gradient and borderRadius to Tooltip.
...
...
@@ -64,23 +62,21 @@ import 'tooltip_theme.dart';
///
/// ```dart
/// Widget build(BuildContext context) {
/// return Center(
/// child: Tooltip(
/// message: "I am a Tooltip",
/// child: Text("Tap this text and hold down to show a tooltip."),
/// decoration: BoxDecoration(
/// borderRadius: BorderRadius.circular(25),
/// gradient: LinearGradient(colors: [Colors.amber, Colors.red]),
/// ),
/// height: 50,
/// padding: EdgeInsets.all(8.0),
/// preferBelow: false,
/// textStyle: TextStyle(
/// fontSize: 24,
/// ),
/// showDuration: Duration(seconds: 2),
/// waitDuration: Duration(seconds: 1),
/// return Tooltip(
/// message: "I am a Tooltip",
/// child: Text("Tap this text and hold down to show a tooltip."),
/// decoration: BoxDecoration(
/// borderRadius: BorderRadius.circular(25),
/// gradient: LinearGradient(colors: [Colors.amber, Colors.red]),
/// ),
/// height: 50,
/// padding: EdgeInsets.all(8.0),
/// preferBelow: false,
/// textStyle: TextStyle(
/// fontSize: 24,
/// ),
/// showDuration: Duration(seconds: 2),
/// waitDuration: Duration(seconds: 1),
/// );
/// }
/// ```
...
...
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