Commit 6fb6e711 authored by Fikri's avatar Fikri

home1.dart -update

carerr.dart
parent 26a21866
......@@ -38,7 +38,7 @@ class _HomePageState extends State<HomePage> {
Colors.black, Colors.black, Colors.black),
body: ListView(
children: [
Home1(wijet: Button_scroll_small()),
Home1(),
Home2(),
Home3(),
Footer(),
......@@ -47,28 +47,6 @@ 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(
......
import 'package:flutter/material.dart';
import 'package:medapp_eksad/homepage.dart';
import 'package:medapp_eksad/screen/career.dart';
import 'package:medapp_eksad/screen/contact_us/contact_us.dart';
import 'package:medapp_eksad/screen/solution.dart';
......@@ -18,6 +19,7 @@ class MyApp extends StatelessWidget {
initialRoute: '/',
routes: {
'/': (context) => const HomePage(),
'/career': (context) => const Career(),
'/solutions': (context) => const Solutions(),
'/contact': (context) => const ContactUs(),
},
......
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 Career extends StatefulWidget {
const Career({Key? key}) : super(key: key);
@override
State<Career> createState() => _CareerState();
}
class _CareerState extends State<Career> {
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
@override
Widget build(BuildContext context) {
setPageTitle('MeddApp Career', 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"),
),
),
// ),
);
}
}
......@@ -2,11 +2,11 @@ import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:medapp_eksad/widget/button_color.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;
const Home1({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
......@@ -43,7 +43,8 @@ class Home1 extends StatelessWidget {
// color: Colors.red,
width: screenSize.width,
height: screenSize.height * 0.6,
padding: EdgeInsets.only(left: screenSize.width * 0.4, top: screenSize.height * 0.2),
padding: EdgeInsets.only(
left: screenSize.width * 0.4, top: screenSize.height * 0.2),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
......@@ -96,7 +97,20 @@ class Home1 extends StatelessWidget {
curve: Curves.bounceIn,
direction: Direction.horizontal,
offset: -0.2,
child: wijet,
child: ElevatedButton(
onPressed: () {
Navigator.pushNamed(context, '/contact');
},
style: DefaultColors(),
child: const Text(
'CONTACT US',
style: TextStyle(
fontSize: 17,
letterSpacing: 2,
color: Colors.white,
fontWeight: FontWeight.w500),
),
),
),
)
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment