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
b42693b2
Commit
b42693b2
authored
2 months ago
by
wonbin
Browse files
Options
Downloads
Patches
Plain Diff
checklist_item
parent
b059acb9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/checklist_item.dart
+22
-0
22 additions, 0 deletions
lib/checklist_item.dart
lib/checklist_view.dart
+33
-0
33 additions, 0 deletions
lib/checklist_view.dart
lib/main.dart
+1
-1
1 addition, 1 deletion
lib/main.dart
with
56 additions
and
1 deletion
lib/checklist_item.dart
0 → 100644
+
22
−
0
View file @
b42693b2
// checklist_item.dart
import
'package:flutter/material.dart'
;
class
ChecklistItem
extends
StatefulWidget
{
final
String
title
;
ChecklistItem
({
required
this
.
title
});
@override
State
<
StatefulWidget
>
createState
()
=
>
_ChecklistItem
();
}
class
_ChecklistItem
extends
State
<
ChecklistItem
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
GestureDetector
(
child:
Container
(
child:
Text
(
'widget.title'
),
)
);
}
}
This diff is collapsed.
Click to expand it.
lib/view.dart
→
lib/
checklist_
view.dart
+
33
−
0
View file @
b42693b2
// checklist_view.dart
// checklist_view.dart
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_application_1/checklist_item.dart'
;
class
ChecklistView
extends
StatefulWidget
{
class
ChecklistView
extends
StatefulWidget
{
@override
@override
State
<
StatefulWidget
>
createState
()
=
>
_ChecklistView
();
State
<
StatefulWidget
>
createState
()
{
return
_ChecklistView
();
}
}
}
class
_ChecklistView
extends
State
<
ChecklistView
>
{
class
_ChecklistView
extends
State
<
ChecklistView
>
{
List
<
String
>
checklist
=
[
"실전코딩 과제"
,
"실전코딩 복습"
,
"게임"
];
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
'
c
hecklist'
)),
appBar:
AppBar
(
title:
const
Text
(
'
C
hecklist'
)),
body:
Container
(
body:
Container
(
child:
Column
(
)
children:
List
<
Widget
>
.
generate
(
checklist
.
length
,
(
index
)
{
return
ChecklistItem
(
title:
checklist
[
index
]);
}),
),
),
);
);
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/main.dart
+
1
−
1
View file @
b42693b2
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_application_1/view.dart'
;
import
'package:flutter_application_1/
checklist_
view.dart'
;
void
main
()
{
void
main
()
{
runApp
(
MyApp
());
runApp
(
MyApp
());
...
...
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