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
285c696f
Commit
285c696f
authored
Apr 02, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Column->Block, uppercase BUTTON captions
parent
665ac49b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
buttons_demo.dart
examples/material_gallery/lib/demo/buttons_demo.dart
+6
-7
snack_bar_demo.dart
examples/material_gallery/lib/demo/snack_bar_demo.dart
+1
-1
No files found.
examples/material_gallery/lib/demo/buttons_demo.dart
View file @
285c696f
...
...
@@ -99,7 +99,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
child:
new
Column
(
children:
<
Widget
>[
new
RaisedButton
(
child:
new
Text
(
"Launch Demo"
),
child:
new
Text
(
'LAUNCH DEMO'
),
onPressed:
()
{
Navigator
.
push
(
context
,
new
MaterialPageRoute
<
Null
>(
builder:
(
BuildContext
context
)
=>
new
SnackBarDemo
()
...
...
@@ -107,7 +107,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
}
),
new
RaisedButton
(
child:
new
Text
(
"Disabled"
)
child:
new
Text
(
'DISABLED'
)
)
]
.
map
((
Widget
child
)
{
...
...
@@ -129,7 +129,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
child:
new
Column
(
children:
<
Widget
>[
new
FlatButton
(
child:
new
Text
(
"Launch Demo"
),
child:
new
Text
(
'LAUNCH DEMO'
),
onPressed:
()
{
Navigator
.
push
(
context
,
new
MaterialPageRoute
<
Null
>(
builder:
(
_
)
=>
new
DialogDemo
()
...
...
@@ -137,7 +137,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
}
),
new
FlatButton
(
child:
new
Text
(
"Disabled"
)
child:
new
Text
(
'DISABLED'
)
)
]
.
map
((
Widget
child
)
{
...
...
@@ -182,12 +182,11 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
return
new
Builder
(
builder:
(
BuildContext
context
)
{
final
TextStyle
textStyle
=
Theme
.
of
(
context
).
textTheme
.
caption
.
copyWith
(
fontSize:
16.0
);
return
new
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
return
new
Block
(
children:
<
Widget
>[
demo
.
builder
(
context
),
new
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
32
.0
),
padding:
const
EdgeInsets
.
fromLTRB
(
32.0
,
0.0
,
32.0
,
24
.0
),
child:
new
Text
(
demo
.
text
,
style:
textStyle
)
)
]
...
...
examples/material_gallery/lib/demo/snack_bar_demo.dart
View file @
285c696f
...
...
@@ -23,7 +23,7 @@ class SnackBarDemo extends StatelessWidget {
Widget
buildBody
(
BuildContext
context
)
{
return
new
Padding
(
padding:
const
EdgeInsets
.
all
(
24.0
),
child:
new
Column
(
child:
new
Block
(
children:
<
Widget
>[
new
Text
(
_text1
),
new
Text
(
_text2
),
...
...
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