Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
Movie-app
Project
Project
Details
Activity
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
Dio Maulana
Movie-app
Commits
60d56b7e
Commit
60d56b7e
authored
Feb 16, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbaikan
parent
4541c590
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
88 deletions
+4
-88
launch.json
.vscode/launch.json
+1
-1
teserah.dart
lib/models/teserah.dart
+0
-81
account.dart
lib/pages/account.dart
+3
-6
No files found.
.vscode/launch.json
View file @
60d56b7e
...
...
@@ -5,7 +5,7 @@
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"
pwa-chrome
"
,
"type"
:
"
dart
"
,
"request"
:
"launch"
,
"name"
:
"Launch Chrome against localhost"
,
"url"
:
"http://localhost:8080"
,
...
...
lib/models/teserah.dart
deleted
100644 → 0
View file @
4541c590
import
'package:flutter/material.dart'
;
void
main
(
)
=>
runApp
(
const
MyApp
());
class
MyApp
extends
StatelessWidget
{
const
MyApp
({
Key
?
key
})
:
super
(
key:
key
);
static
const
String
_title
=
'Flutter Code Sample'
;
@override
Widget
build
(
BuildContext
context
)
{
return
const
MaterialApp
(
title:
_title
,
home:
MyStatefulWidget
(),
);
}
}
class
MyStatefulWidget
extends
StatefulWidget
{
const
MyStatefulWidget
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
MyStatefulWidget
>
createState
()
=>
_MyStatefulWidgetState
();
}
class
_MyStatefulWidgetState
extends
State
<
MyStatefulWidget
>
{
int
_selectedIndex
=
0
;
static
const
TextStyle
optionStyle
=
TextStyle
(
fontSize:
30
,
fontWeight:
FontWeight
.
bold
);
static
const
List
<
Widget
>
_widgetOptions
=
<
Widget
>[
Text
(
'Index 0: Home'
,
style:
optionStyle
,
),
Text
(
'Index 1: Business'
,
style:
optionStyle
,
),
Text
(
'Index 2: School'
,
style:
optionStyle
,
),
];
void
_onItemTapped
(
int
index
)
{
setState
(()
{
_selectedIndex
=
index
;
});
}
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
'BottomNavigationBar Sample'
),
),
body:
Center
(
child:
_widgetOptions
.
elementAt
(
_selectedIndex
),
),
bottomNavigationBar:
BottomNavigationBar
(
items:
const
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
icon:
Icon
(
Icons
.
home
),
label:
'Home'
,
),
BottomNavigationBarItem
(
icon:
Icon
(
Icons
.
business
),
label:
'Business'
,
),
BottomNavigationBarItem
(
icon:
Icon
(
Icons
.
school
),
label:
'School'
,
),
],
currentIndex:
_selectedIndex
,
selectedItemColor:
Colors
.
amber
[
800
],
onTap:
_onItemTapped
,
),
);
}
}
lib/pages/account.dart
View file @
60d56b7e
import
'package:flutter/material.dart'
;
import
'package:movie_app/config.dart'
;
class
AccountPage
extends
StatefulWidget
{
const
AccountPage
({
Key
?
key
})
:
super
(
key:
key
);
...
...
@@ -10,12 +11,8 @@ class AccountPage extends StatefulWidget {
class
_AccountPageState
extends
State
<
AccountPage
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
home:
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Account Page'
),
),
),
return
Scaffold
(
backgroundColor:
backgroundColor
,
);
}
}
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