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
3aa0437f
Commit
3aa0437f
authored
Jul 23, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename defaultFocus to initialFocus.
parent
4da27671
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
main.dart
packages/flutter/example/address_book/lib/main.dart
+1
-1
stock_home.dart
packages/flutter/example/stocks/lib/stock_home.dart
+1
-1
focus.dart
packages/flutter/lib/widgets/focus.dart
+3
-3
No files found.
packages/flutter/example/address_book/lib/main.dart
View file @
3aa0437f
...
@@ -112,7 +112,7 @@ class AddressBookApp extends App {
...
@@ -112,7 +112,7 @@ class AddressBookApp extends App {
child:
new
TaskDescription
(
child:
new
TaskDescription
(
label:
'Address Book'
,
label:
'Address Book'
,
child:
new
Focus
(
child:
new
Focus
(
default
Focus:
nameKey
,
initial
Focus:
nameKey
,
child:
buildMain
()
child:
buildMain
()
)
)
)
)
...
...
packages/flutter/example/stocks/lib/stock_home.dart
View file @
3aa0437f
...
@@ -322,7 +322,7 @@ class StockHome extends StatefulComponent {
...
@@ -322,7 +322,7 @@ class StockHome extends StatefulComponent {
];
];
addMenuToOverlays
(
overlays
);
addMenuToOverlays
(
overlays
);
return
new
Focus
(
return
new
Focus
(
default
Focus:
searchFieldKey
,
initial
Focus:
searchFieldKey
,
child:
new
Stack
(
overlays
)
child:
new
Stack
(
overlays
)
);
);
}
}
...
...
packages/flutter/lib/widgets/focus.dart
View file @
3aa0437f
...
@@ -14,17 +14,17 @@ class Focus extends Inherited {
...
@@ -14,17 +14,17 @@ class Focus extends Inherited {
Focus
({
Focus
({
GlobalKey
key
,
GlobalKey
key
,
GlobalKey
default
Focus
,
GlobalKey
initial
Focus
,
Widget
child
Widget
child
})
:
super
(
key:
key
,
child:
child
);
})
:
super
(
key:
key
,
child:
child
);
GlobalKey
default
Focus
;
GlobalKey
initial
Focus
;
GlobalKey
_currentlyFocusedKey
;
GlobalKey
_currentlyFocusedKey
;
GlobalKey
get
currentlyFocusedKey
{
GlobalKey
get
currentlyFocusedKey
{
if
(
_currentlyFocusedKey
!=
null
)
if
(
_currentlyFocusedKey
!=
null
)
return
_currentlyFocusedKey
;
return
_currentlyFocusedKey
;
return
default
Focus
;
return
initial
Focus
;
}
}
void
set
currentlyFocusedKey
(
GlobalKey
value
)
{
void
set
currentlyFocusedKey
(
GlobalKey
value
)
{
if
(
value
!=
_currentlyFocusedKey
)
{
if
(
value
!=
_currentlyFocusedKey
)
{
...
...
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