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
26a21866
Commit
26a21866
authored
Aug 30, 2022
by
Fikri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home1.dart
parent
82eed6a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
0 deletions
+133
-0
homepage.png
assets/logo/homepage.png
+0
-0
homepage.dart
lib/homepage.dart
+25
-0
home1.dart
lib/screen/home/home1.dart
+108
-0
No files found.
assets/logo/homepage.png
0 → 100644
View file @
26a21866
458 KB
lib/homepage.dart
View file @
26a21866
import
'package:flutter/material.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:medapp_eksad/appbar/appbar_home.dart'
;
import
'package:medapp_eksad/screen/footer.dart'
;
import
'package:medapp_eksad/screen/home/home1.dart'
;
import
'package:medapp_eksad/screen/home/home2.dart'
;
import
'package:medapp_eksad/screen/home/home3.dart'
;
import
'package:medapp_eksad/widget/responsive.dart'
;
...
...
@@ -36,6 +38,7 @@ class _HomePageState extends State<HomePage> {
Colors
.
black
,
Colors
.
black
,
Colors
.
black
),
body:
ListView
(
children:
[
Home1
(
wijet:
Button_scroll_small
()),
Home2
(),
Home3
(),
Footer
(),
...
...
@@ -44,6 +47,28 @@ class _HomePageState extends State<HomePage> {
);
}
ScrollController
controller2
=
ScrollController
();
void
_scrollToIndex
(
double
index
)
{
controller2
.
animateTo
(
index
,
duration:
const
Duration
(
seconds:
1
),
curve:
Curves
.
fastLinearToSlowEaseIn
);
}
ElevatedButton
Button_scroll_small
()
{
return
ElevatedButton
(
onPressed:
()
{
_scrollToIndex
(
5110
);
},
style:
ElevatedButton
.
styleFrom
(
primary:
const
Color
(
0xff1e5ea8
),
fixedSize:
Size
(
50
,
20
)),
child:
Text
(
'TAKL WITH EXPERT'
,
style:
GoogleFonts
.
poppins
(
fontSize:
15
,
letterSpacing:
1.5
,
fontWeight:
FontWeight
.
w500
),
),
);
}
AppBar
AppBarKecil
()
{
return
AppBar
(
leading:
IconButton
(
...
...
lib/screen/home/home1.dart
0 → 100644
View file @
26a21866
import
'dart:ui'
;
import
'package:flutter/material.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:show_up_animation/show_up_animation.dart'
;
class
Home1
extends
StatelessWidget
{
const
Home1
({
Key
?
key
,
required
this
.
wijet
})
:
super
(
key:
key
);
final
Widget
wijet
;
@override
Widget
build
(
BuildContext
context
)
{
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
Stack
(
children:
[
Container
(
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.7
,
decoration:
BoxDecoration
(
color:
Colors
.
transparent
,
image:
DecorationImage
(
image:
AssetImage
(
"assets/logo/homepage.png"
,
),
fit:
BoxFit
.
cover
),
),
),
Container
(
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.7
,
decoration:
BoxDecoration
(
color:
Colors
.
blue
,
gradient:
LinearGradient
(
colors:
[
Colors
.
blue
.
withOpacity
(
0.0
),
Colors
.
blue
,
],
stops:
[
0.0
,
1.0
],
),
),
),
Container
(
// color: Colors.red,
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.6
,
padding:
EdgeInsets
.
only
(
left:
screenSize
.
width
*
0.4
,
top:
screenSize
.
height
*
0.2
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
Container
(
// color: Colors.blue,
width:
screenSize
.
width
*
0.25
,
height:
screenSize
.
height
*
0.09
,
child:
ShowUpAnimation
(
delayStart:
const
Duration
(
seconds:
1
),
direction:
Direction
.
horizontal
,
child:
Text
(
'Engage With Your Patients More Efficiently'
,
textAlign:
TextAlign
.
center
,
style:
GoogleFonts
.
poppins
(
fontSize:
26
,
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
white
),
// overflow: TextOverflow.ellipsis,
),
),
),
Container
(
// color: Colors.green,
// padding: EdgeInsets.only(top: 1),
width:
screenSize
.
width
*
0.3
,
// height: screenSize.height * 0.19,
child:
ShowUpAnimation
(
delayStart:
const
Duration
(
seconds:
1
),
curve:
Curves
.
bounceIn
,
direction:
Direction
.
horizontal
,
// offset: -0.2,
child:
Text
(
'Welcome to healthcare’s most powerful collaboration suite. Enhance clinical workflows, speed decisions, and improve patient outcomes, safely and securely.'
,
textAlign:
TextAlign
.
center
,
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
// letterSpacing: 1.3,
// height: 1.5,
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
white
),
),
),
),
Container
(
width:
screenSize
.
width
*
0.135
,
height:
screenSize
.
height
*
0.07
,
child:
ShowUpAnimation
(
delayStart:
const
Duration
(
seconds:
1
),
curve:
Curves
.
bounceIn
,
direction:
Direction
.
horizontal
,
offset:
-
0.2
,
child:
wijet
,
),
)
],
),
),
],
);
}
}
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