Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
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
qorri_di
medapp_eksad
Commits
6829b0f1
Commit
6829b0f1
authored
Aug 30, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rooting
parent
5254d024
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
23 deletions
+126
-23
main.dart
lib/main.dart
+4
-0
contact_us.dart
lib/screen/contact_us.dart
+61
-0
solution.dart
lib/screen/solution.dart
+61
-0
pubspec.lock
pubspec.lock
+0
-21
pubspec.yaml
pubspec.yaml
+0
-2
No files found.
lib/main.dart
View file @
6829b0f1
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/homepage.dart'
;
import
'package:medapp_eksad/homepage.dart'
;
import
'package:medapp_eksad/screen/contact_us.dart'
;
import
'package:medapp_eksad/screen/solution.dart'
;
void
main
(
)
{
void
main
(
)
{
runApp
(
const
MyApp
());
runApp
(
const
MyApp
());
...
@@ -16,6 +18,8 @@ class MyApp extends StatelessWidget {
...
@@ -16,6 +18,8 @@ class MyApp extends StatelessWidget {
initialRoute:
'/'
,
initialRoute:
'/'
,
routes:
{
routes:
{
'/'
:
(
context
)
=>
const
HomePage
(),
'/'
:
(
context
)
=>
const
HomePage
(),
'/solutions'
:
(
context
)
=>
const
Solutions
(),
'/contact'
:
(
context
)
=>
const
ContactUs
(),
},
},
);
);
}
}
...
...
lib/screen/contact_us.dart
0 → 100644
View file @
6829b0f1
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/appbar/appbar_home.dart'
;
import
'package:medapp_eksad/screen/footer.dart'
;
import
'package:medapp_eksad/widget/responsive.dart'
;
import
'package:flutter/services.dart'
;
void
setPageTitle
(
String
title
,
BuildContext
context
)
{
SystemChrome
.
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
(
label:
title
,
primaryColor:
Theme
.
of
(
context
).
primaryColor
.
value
,
// This line is required
));
}
class
ContactUs
extends
StatefulWidget
{
const
ContactUs
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
ContactUs
>
createState
()
=>
_ContactUsState
();
}
class
_ContactUsState
extends
State
<
ContactUs
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>();
@override
Widget
build
(
BuildContext
context
)
{
setPageTitle
(
'Contact Us'
,
context
);
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
Scaffold
(
key:
_scaffoldKey
,
appBar:
ResponsiveWidget
.
isSmallScreen
(
context
)
?
AppBarKecil
()
:
AppbarHomeLarge
(
screenSize
,
context
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
blue
),
body:
ListView
(
children:
[
Footer
()
],
),
);
}
AppBar
AppBarKecil
()
{
return
AppBar
(
leading:
IconButton
(
onPressed:
()
=>
_scaffoldKey
.
currentState
!.
openDrawer
(),
icon:
Icon
(
Icons
.
list_outlined
,
size:
30
,
color:
Colors
.
black
,),),
backgroundColor:
Colors
.
white
,
centerTitle:
true
,
title:
Container
(
child:
SizedBox
(
height:
50
,
width:
150
,
child:
Image
.
asset
(
"assets/logo/medapp-logo.png"
),
),
),
// ),
);
}
}
lib/screen/solution.dart
0 → 100644
View file @
6829b0f1
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/appbar/appbar_home.dart'
;
import
'package:medapp_eksad/screen/footer.dart'
;
import
'package:medapp_eksad/widget/responsive.dart'
;
import
'package:flutter/services.dart'
;
void
setPageTitle
(
String
title
,
BuildContext
context
)
{
SystemChrome
.
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
(
label:
title
,
primaryColor:
Theme
.
of
(
context
).
primaryColor
.
value
,
// This line is required
));
}
class
Solutions
extends
StatefulWidget
{
const
Solutions
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
Solutions
>
createState
()
=>
_SolutionsState
();
}
class
_SolutionsState
extends
State
<
Solutions
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>();
@override
Widget
build
(
BuildContext
context
)
{
setPageTitle
(
'MeddApp Solutions'
,
context
);
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
Scaffold
(
key:
_scaffoldKey
,
appBar:
ResponsiveWidget
.
isSmallScreen
(
context
)
?
AppBarKecil
()
:
AppbarHomeLarge
(
screenSize
,
context
,
Colors
.
black
,
Colors
.
black
,
Colors
.
blue
,
Colors
.
black
,
Colors
.
black
),
body:
ListView
(
children:
[
Footer
()
],
),
);
}
AppBar
AppBarKecil
()
{
return
AppBar
(
leading:
IconButton
(
onPressed:
()
=>
_scaffoldKey
.
currentState
!.
openDrawer
(),
icon:
Icon
(
Icons
.
list_outlined
,
size:
30
,
color:
Colors
.
black
,),),
backgroundColor:
Colors
.
white
,
centerTitle:
true
,
title:
Container
(
child:
SizedBox
(
height:
50
,
width:
150
,
child:
Image
.
asset
(
"assets/logo/medapp-logo.png"
),
),
),
// ),
);
}
}
pubspec.lock
View file @
6829b0f1
...
@@ -8,13 +8,6 @@ packages:
...
@@ -8,13 +8,6 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.8.2"
version: "2.8.2"
axis_layout:
dependency: transitive
description:
name: axis_layout
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
boolean_selector:
boolean_selector:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -22,13 +15,6 @@ packages:
...
@@ -22,13 +15,6 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.1.0"
version: "2.1.0"
carousel_slider:
dependency: "direct main"
description:
name: carousel_slider
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.1"
characters:
characters:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -78,13 +64,6 @@ packages:
...
@@ -78,13 +64,6 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "5.0.2"
version: "5.0.2"
easy_table:
dependency: "direct main"
description:
name: easy_table
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
fake_async:
fake_async:
dependency: transitive
dependency: transitive
description:
description:
...
...
pubspec.yaml
View file @
6829b0f1
...
@@ -35,8 +35,6 @@ dependencies:
...
@@ -35,8 +35,6 @@ dependencies:
font_awesome_flutter
:
^10.1.0
font_awesome_flutter
:
^10.1.0
intl
:
^0.17.0
intl
:
^0.17.0
dropdown_search
:
^5.0.2
dropdown_search
:
^5.0.2
carousel_slider
:
^4.1.1
easy_table
:
^2.0.1
sidebarx
:
^0.7.0
sidebarx
:
^0.7.0
flutter_web_plugins
:
flutter_web_plugins
:
sdk
:
flutter
sdk
:
flutter
...
...
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