home1.dart 4.42 KB
Newer Older
Fikri's avatar
Fikri committed
1 2 3 4
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
Fikri's avatar
Fikri committed
5
import 'package:medapp_eksad/widget/button_color.dart';
Fikri's avatar
Fikri committed
6 7 8
import 'package:show_up_animation/show_up_animation.dart';

class Home1 extends StatelessWidget {
Fikri's avatar
Fikri committed
9
  const Home1({Key? key}) : super(key: key);
Fikri's avatar
Fikri committed
10 11 12 13 14 15 16 17 18

  @override
  Widget build(BuildContext context) {
    var screenSize = MediaQuery.of(context).size;
    return Stack(
      children: [
        Container(
          width: screenSize.width,
          height: screenSize.height * 0.7,
Budi Prasetyo's avatar
Budi Prasetyo committed
19
          decoration: const BoxDecoration(
Fikri's avatar
Fikri committed
20 21 22
            color: Colors.transparent,
            image: DecorationImage(
                image: AssetImage(
23
                  "assets/images/homepage.png",
Fikri's avatar
Fikri committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37
                ),
                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,
              ],
Budi Prasetyo's avatar
Budi Prasetyo committed
38
              stops: const [0.0, 1.0],
Fikri's avatar
Fikri committed
39 40 41 42 43 44 45
            ),
          ),
        ),
        Container(
          // color: Colors.red,
          width: screenSize.width,
          height: screenSize.height * 0.6,
Fikri's avatar
Fikri committed
46
          padding: EdgeInsets.only(
Budi Prasetyo's avatar
Budi Prasetyo committed
47
              left: screenSize.width * 0.46, top: screenSize.height * 0.12),
Fikri's avatar
Fikri committed
48 49 50 51 52 53
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: [
              Container(
                // color: Colors.blue,
Budi Prasetyo's avatar
Budi Prasetyo committed
54 55
                width: screenSize.width * 0.35,
                height: screenSize.height * 0.15,
Fikri's avatar
Fikri committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
                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,
Budi Prasetyo's avatar
Budi Prasetyo committed
74
                height: screenSize.height * 0.23,
Fikri's avatar
Fikri committed
75 76 77 78 79 80
                child: ShowUpAnimation(
                  delayStart: const Duration(seconds: 1),
                  curve: Curves.bounceIn,
                  direction: Direction.horizontal,
                  // offset: -0.2,
                  child: Text(
81 82 83
                    'Welcome to healthcare’s most powerful collaboration suite. '
                        'Enhance clinical workflows, speed decisions, and improve'
                        ' patient outcomes, safely and securely.',
Fikri's avatar
Fikri committed
84 85
                    textAlign: TextAlign.center,
                    style: GoogleFonts.poppins(
Budi Prasetyo's avatar
Budi Prasetyo committed
86
                        fontSize: 18,
Fikri's avatar
Fikri committed
87 88 89 90 91 92 93 94
                        // letterSpacing: 1.3,
                        // height: 1.5,
                        fontWeight: FontWeight.bold,
                        color: Colors.white),
                  ),
                ),
              ),
              Container(
Budi Prasetyo's avatar
Budi Prasetyo committed
95
                width: screenSize.width * 0.17,
Fikri's avatar
Fikri committed
96 97 98 99 100 101
                height: screenSize.height * 0.07,
                child: ShowUpAnimation(
                  delayStart: const Duration(seconds: 1),
                  curve: Curves.bounceIn,
                  direction: Direction.horizontal,
                  offset: -0.2,
Fikri's avatar
Fikri committed
102 103 104 105 106 107
                  child: ElevatedButton(
                    onPressed: () {
                      Navigator.pushNamed(context, '/contact');
                    },
                    style: DefaultColors(),
                    child: const Text(
r.manan@eksad.com's avatar
r.manan@eksad.com committed
108
                      'TALK WITH EXPERT',
Fikri's avatar
Fikri committed
109 110 111 112 113
                      style: TextStyle(
                          fontSize: 17,
                          letterSpacing: 2,
                          color: Colors.white,
                          fontWeight: FontWeight.w500),
114
                      textAlign: TextAlign.center,
Fikri's avatar
Fikri committed
115 116
                    ),
                  ),
Fikri's avatar
Fikri committed
117 118 119 120 121 122 123 124 125
                ),
              )
            ],
          ),
        ),
      ],
    );
  }
}