Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Myflutter2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
정 원빈
Myflutter2
Commits
b059acb9
Commit
b059acb9
authored
2 months ago
by
wonbin
Browse files
Options
Downloads
Patches
Plain Diff
page_layout-3
parent
35145dba
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/main.dart
+20
-29
20 additions, 29 deletions
lib/main.dart
lib/view.dart
+21
-0
21 additions, 0 deletions
lib/view.dart
with
41 additions
and
29 deletions
lib/main.dart
+
20
−
29
View file @
b059acb9
import
'package:flutter/material.dart'
;
import
'package:flutter_application_1/view.dart'
;
void
main
()
{
runApp
(
MyApp
());
...
...
@@ -10,7 +11,7 @@ class MyApp extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
home:
MyHomePage
(
title:
'My Flutter App'
),
// const 제거
home:
MyHomePage
(
title:
'My Flutter App'
),
);
}
}
...
...
@@ -24,40 +25,30 @@ class MyHomePage extends StatefulWidget {
}
class
_MyHomePageState
extends
State
<
MyHomePage
>
{
void
_moveView
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=
>
ChecklistView
(),
),
);
}
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
widget
.
title
),
),
body:
Container
(
margin:
EdgeInsets
.
all
(
20
),
padding:
EdgeInsets
.
symmetric
(
vertical:
20
,
horizontal:
20
),
child:
Center
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Container
(
width:
200
,
height:
100
,
body:
Center
(
child:
GestureDetector
(
onTap:
_moveView
,
child:
Container
(
height:
40
,
width:
40
,
decoration:
BoxDecoration
(
border:
Border
.
all
(
color:
Colors
.
black
,
width:
2
),
),
child:
Text
(
'text in box'
),
),
Text
(
'text outside of box'
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Text
(
'text in Row'
),
Container
(
width:
100
,
height:
100
,
child:
Icon
(
Icons
.
flag
),
),
],
border:
Border
.
all
(
color:
Colors
.
black
),
),
],
),
),
),
...
...
This diff is collapsed.
Click to expand it.
lib/view.dart
0 → 100644
+
21
−
0
View file @
b059acb9
// checklist_view.dart
import
'package:flutter/material.dart'
;
class
ChecklistView
extends
StatefulWidget
{
@override
State
<
StatefulWidget
>
createState
()
=
>
_ChecklistView
();
}
class
_ChecklistView
extends
State
<
ChecklistView
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
'checklist'
)),
body:
Container
(
)
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment