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
8dcdec53
Commit
8dcdec53
authored
Feb 23, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the home page padding to inside the Block
parent
7915e909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
84 deletions
+82
-84
home.dart
examples/material_gallery/lib/gallery/home.dart
+82
-84
No files found.
examples/material_gallery/lib/gallery/home.dart
View file @
8dcdec53
...
...
@@ -59,91 +59,89 @@ class GalleryHomeState extends State<GalleryHome> {
);
}
),
body:
new
Padding
(
body:
new
Block
(
padding:
const
EdgeDims
.
all
(
4.0
),
child:
new
Block
(
children:
<
Widget
>[
new
Row
(
children:
<
Widget
>[
new
GallerySection
(
title:
'Animation'
,
image:
'assets/section_animation.png'
,
colors:
Colors
.
purple
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Weathers'
,
builder:
()
=>
new
WeathersDemo
()),
new
GalleryDemo
(
title:
'Fitness'
,
builder:
()
=>
new
FitnessDemo
())
]
),
new
GallerySection
(
title:
'Style'
,
image:
'assets/section_style.png'
,
colors:
Colors
.
green
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Colors'
,
builder:
()
=>
new
ColorsDemo
()),
new
GalleryDemo
(
title:
'Typography'
,
builder:
()
=>
new
TypographyDemo
())
]
)
]
),
new
Row
(
children:
<
Widget
>[
new
GallerySection
(
title:
'Layout'
,
image:
'assets/section_layout.png'
,
colors:
Colors
.
pink
),
new
GallerySection
(
title:
'Components'
,
image:
'assets/section_components.png'
,
colors:
Colors
.
amber
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Buttons'
,
builder:
()
=>
new
ButtonsDemo
()),
new
GalleryDemo
(
title:
'Cards'
,
builder:
()
=>
new
CardsDemo
()),
new
GalleryDemo
(
title:
'Chips'
,
builder:
()
=>
new
ChipDemo
()),
new
GalleryDemo
(
title:
'Date Picker'
,
builder:
()
=>
new
DatePickerDemo
()),
new
GalleryDemo
(
title:
'Dialog'
,
builder:
()
=>
new
DialogDemo
()),
new
GalleryDemo
(
title:
'Dropdown Button'
,
builder:
()
=>
new
DropDownDemo
()),
new
GalleryDemo
(
title:
'Expland/Collapse List Control'
,
builder:
()
=>
new
TwoLevelListDemo
()),
new
GalleryDemo
(
title:
'Floating Action Button'
,
builder:
()
=>
new
TabsFabDemo
()),
new
GalleryDemo
(
title:
'Grid'
,
builder:
()
=>
new
GridListDemo
()),
new
GalleryDemo
(
title:
'Icons'
,
builder:
()
=>
new
IconsDemo
()),
new
GalleryDemo
(
title:
'List'
,
builder:
()
=>
new
ListDemo
()),
new
GalleryDemo
(
title:
'Modal Bottom Sheet'
,
builder:
()
=>
new
ModalBottomSheetDemo
()),
new
GalleryDemo
(
title:
'Page Selector'
,
builder:
()
=>
new
PageSelectorDemo
()),
new
GalleryDemo
(
title:
'Persistent Bottom Sheet'
,
builder:
()
=>
new
PersistentBottomSheetDemo
()),
new
GalleryDemo
(
title:
'Progress Indicators'
,
builder:
()
=>
new
ProgressIndicatorDemo
()),
new
GalleryDemo
(
title:
'Selection Controls'
,
builder:
()
=>
new
ToggleControlsDemo
()),
new
GalleryDemo
(
title:
'Sliders'
,
builder:
()
=>
new
SliderDemo
()),
new
GalleryDemo
(
title:
'SnackBar'
,
builder:
()
=>
new
SnackBarDemo
()),
new
GalleryDemo
(
title:
'Tabs'
,
builder:
()
=>
new
TabsDemo
()),
new
GalleryDemo
(
title:
'Time Picker'
,
builder:
()
=>
new
TimePickerDemo
()),
new
GalleryDemo
(
title:
'Tooltips'
,
builder:
()
=>
new
TooltipDemo
())
]
)
]
),
new
Row
(
children:
<
Widget
>[
new
GallerySection
(
title:
'Patterns'
,
image:
'assets/section_patterns.png'
,
colors:
Colors
.
cyan
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Scrolling Techniques'
,
builder:
()
=>
new
ScrollingTechniquesDemo
())
]
),
new
GallerySection
(
title:
'Usability'
,
image:
'assets/section_usability.png'
,
colors:
Colors
.
lightGreen
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Tooltips'
,
builder:
()
=>
new
TooltipDemo
())
]
)
]
)
]
)
children:
<
Widget
>[
new
Row
(
children:
<
Widget
>[
new
GallerySection
(
title:
'Animation'
,
image:
'assets/section_animation.png'
,
colors:
Colors
.
purple
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Weathers'
,
builder:
()
=>
new
WeathersDemo
()),
new
GalleryDemo
(
title:
'Fitness'
,
builder:
()
=>
new
FitnessDemo
())
]
),
new
GallerySection
(
title:
'Style'
,
image:
'assets/section_style.png'
,
colors:
Colors
.
green
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Colors'
,
builder:
()
=>
new
ColorsDemo
()),
new
GalleryDemo
(
title:
'Typography'
,
builder:
()
=>
new
TypographyDemo
())
]
)
]
),
new
Row
(
children:
<
Widget
>[
new
GallerySection
(
title:
'Layout'
,
image:
'assets/section_layout.png'
,
colors:
Colors
.
pink
),
new
GallerySection
(
title:
'Components'
,
image:
'assets/section_components.png'
,
colors:
Colors
.
amber
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Buttons'
,
builder:
()
=>
new
ButtonsDemo
()),
new
GalleryDemo
(
title:
'Cards'
,
builder:
()
=>
new
CardsDemo
()),
new
GalleryDemo
(
title:
'Chips'
,
builder:
()
=>
new
ChipDemo
()),
new
GalleryDemo
(
title:
'Date Picker'
,
builder:
()
=>
new
DatePickerDemo
()),
new
GalleryDemo
(
title:
'Dialog'
,
builder:
()
=>
new
DialogDemo
()),
new
GalleryDemo
(
title:
'Dropdown Button'
,
builder:
()
=>
new
DropDownDemo
()),
new
GalleryDemo
(
title:
'Expland/Collapse List Control'
,
builder:
()
=>
new
TwoLevelListDemo
()),
new
GalleryDemo
(
title:
'Floating Action Button'
,
builder:
()
=>
new
TabsFabDemo
()),
new
GalleryDemo
(
title:
'Grid'
,
builder:
()
=>
new
GridListDemo
()),
new
GalleryDemo
(
title:
'Icons'
,
builder:
()
=>
new
IconsDemo
()),
new
GalleryDemo
(
title:
'List'
,
builder:
()
=>
new
ListDemo
()),
new
GalleryDemo
(
title:
'Modal Bottom Sheet'
,
builder:
()
=>
new
ModalBottomSheetDemo
()),
new
GalleryDemo
(
title:
'Page Selector'
,
builder:
()
=>
new
PageSelectorDemo
()),
new
GalleryDemo
(
title:
'Persistent Bottom Sheet'
,
builder:
()
=>
new
PersistentBottomSheetDemo
()),
new
GalleryDemo
(
title:
'Progress Indicators'
,
builder:
()
=>
new
ProgressIndicatorDemo
()),
new
GalleryDemo
(
title:
'Selection Controls'
,
builder:
()
=>
new
ToggleControlsDemo
()),
new
GalleryDemo
(
title:
'Sliders'
,
builder:
()
=>
new
SliderDemo
()),
new
GalleryDemo
(
title:
'SnackBar'
,
builder:
()
=>
new
SnackBarDemo
()),
new
GalleryDemo
(
title:
'Tabs'
,
builder:
()
=>
new
TabsDemo
()),
new
GalleryDemo
(
title:
'Time Picker'
,
builder:
()
=>
new
TimePickerDemo
()),
new
GalleryDemo
(
title:
'Tooltips'
,
builder:
()
=>
new
TooltipDemo
())
]
)
]
),
new
Row
(
children:
<
Widget
>[
new
GallerySection
(
title:
'Patterns'
,
image:
'assets/section_patterns.png'
,
colors:
Colors
.
cyan
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Scrolling Techniques'
,
builder:
()
=>
new
ScrollingTechniquesDemo
())
]
),
new
GallerySection
(
title:
'Usability'
,
image:
'assets/section_usability.png'
,
colors:
Colors
.
lightGreen
,
demos:
<
GalleryDemo
>[
new
GalleryDemo
(
title:
'Tooltips'
,
builder:
()
=>
new
TooltipDemo
())
]
)
]
)
]
)
);
}
...
...
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