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
fc03057b
Commit
fc03057b
authored
Oct 28, 2016
by
Hans Muller
Committed by
Adam Barth
Oct 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid known wide gallery title issues (#6534)
parent
639ba0dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
grid_list_demo.dart
examples/flutter_gallery/lib/demo/grid_list_demo.dart
+18
-3
leave_behind_demo.dart
examples/flutter_gallery/lib/demo/leave_behind_demo.dart
+1
-1
No files found.
examples/flutter_gallery/lib/demo/grid_list_demo.dart
View file @
fc03057b
...
...
@@ -37,6 +37,21 @@ class GridPhotoViewer extends StatefulWidget {
_GridPhotoViewerState
createState
()
=>
new
_GridPhotoViewerState
();
}
class
_GridTitleText
extends
StatelessWidget
{
_GridTitleText
(
this
.
text
);
final
String
text
;
@override
Widget
build
(
BuildContext
context
)
{
return
new
FittedBox
(
fit:
ImageFit
.
scaleDown
,
alignment:
FractionalOffset
.
centerLeft
,
child:
new
Text
(
text
),
);
}
}
class
_GridPhotoViewerState
extends
State
<
GridPhotoViewer
>
with
SingleTickerProviderStateMixin
{
AnimationController
_controller
;
Animation
<
Offset
>
_flingAnimation
;
...
...
@@ -180,7 +195,7 @@ class GridDemoPhotoItem extends StatelessWidget {
header:
new
GestureDetector
(
onTap:
()
{
onBannerTap
(
photo
);
},
child:
new
GridTileBar
(
title:
new
Text
(
photo
.
title
),
title:
new
_GridTitle
Text
(
photo
.
title
),
backgroundColor:
Colors
.
black45
,
leading:
new
Icon
(
icon
,
...
...
@@ -197,8 +212,8 @@ class GridDemoPhotoItem extends StatelessWidget {
onTap:
()
{
onBannerTap
(
photo
);
},
child:
new
GridTileBar
(
backgroundColor:
Colors
.
black45
,
title:
new
Text
(
photo
.
title
),
subtitle:
new
Text
(
photo
.
caption
),
title:
new
_GridTitle
Text
(
photo
.
title
),
subtitle:
new
_GridTitle
Text
(
photo
.
caption
),
trailing:
new
Icon
(
icon
,
color:
Colors
.
white
...
...
examples/flutter_gallery/lib/demo/leave_behind_demo.dart
View file @
fc03057b
...
...
@@ -134,7 +134,7 @@ class LeaveBehindDemoState extends State<LeaveBehindDemo> {
key:
_scaffoldKey
,
scrollableKey:
_scrollableKey
,
appBar:
new
AppBar
(
title:
new
Text
(
'Swipe
items
to dismiss'
),
title:
new
Text
(
'Swipe to dismiss'
),
actions:
<
Widget
>[
new
PopupMenuButton
<
LeaveBehindDemoAction
>(
onSelected:
handleDemoAction
,
...
...
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