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
db75aa76
Commit
db75aa76
authored
Jun 13, 2017
by
Ian Hickson
Committed by
GitHub
Jun 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix analyzer errors in sample code (#10648)
parent
a9f1cb8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
foundation.dart
packages/flutter/lib/foundation.dart
+3
-2
tab_controller.dart
packages/flutter/lib/src/material/tab_controller.dart
+14
-6
text.dart
packages/flutter/lib/src/widgets/text.dart
+1
-1
No files found.
packages/flutter/lib/foundation.dart
View file @
db75aa76
...
...
@@ -17,13 +17,14 @@ export 'package:meta/meta.dart' show
required
;
// Examples can assume:
// String _name;
// bool _first;
// bool _lights;
// bool _visible;
// double _volume;
// dynamic _selection;
// dynamic _last;
// dynamic _calculation;
// dynamic _last;
// dynamic _selection;
export
'src/foundation/assertions.dart'
;
export
'src/foundation/basic_types.dart'
;
...
...
packages/flutter/lib/src/material/tab_controller.dart
View file @
db75aa76
...
...
@@ -14,12 +14,24 @@ import 'constants.dart';
/// The selected tab's index can be changed with [animateTo].
///
/// A stateful widget that builds a [TabBar] or a [TabBarView] can create
/// a TabController and share it directly.
/// a [TabController] and share it directly.
///
/// When the [TabBar] and [TabBarView] don't have a convenient stateful
/// ancestor, a [TabController] can be shared with the [DefaultTabController]
/// inherited widget.
///
/// ## Sample code
///
/// This widget introduces a [Scaffold] with an [AppBar] and a [TabBar].
///
/// ```dart
/// class _MyDemoState extends State<MyDemo> with SingleTickerProviderStateMixin {
/// class MyTabbedPage extends StatefulWidget {
/// const MyTabbedPage({ Key key }) : super(key: key);
/// @override
/// _MyTabbedPageState createState() => new _MyTabbedPageState();
/// }
///
/// class _MyTabbedPageState extends State<MyTabbedPage> with SingleTickerProviderStateMixin {
/// final List<Tab> myTabs = <Tab>[
/// new Tab(text: 'LEFT'),
/// new Tab(text: 'RIGHT'),
...
...
@@ -58,10 +70,6 @@ import 'constants.dart';
/// }
/// }
/// ```
///
/// When the [TabBar] and [TabBarView] don't have a convenient stateful
/// ancestor, a TabController can be shared with the [DefaultTabController]
/// inherited widget.
class
TabController
extends
ChangeNotifier
{
/// Creates an object that manages the state required by [TabBar] and a [TabBarView].
///
...
...
packages/flutter/lib/src/widgets/text.dart
View file @
db75aa76
...
...
@@ -143,7 +143,7 @@ class DefaultTextStyle extends InheritedWidget {
///
/// ```dart
/// new Text(
/// 'Hello, $name! How are you?',
/// 'Hello, $
_
name! How are you?',
/// textAlign: TextAlign.center,
/// overflow: TextOverflow.ellipsis,
/// style: new TextStyle(fontWeight: FontWeight.bold),
...
...
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