small_contact_us1.dart 1.39 KB
Newer Older
1 2 3
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

Budi Prasetyo's avatar
Budi Prasetyo committed
4

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
class ContactUs1_small extends StatefulWidget {
  const ContactUs1_small({Key? key}) : super(key: key);

  @override
  State<ContactUs1_small> createState() => _ContactUsState();
}

class _ContactUsState extends State<ContactUs1_small> {
  @override
  Widget build(BuildContext context) {
    var screenSize = MediaQuery.of(context).size;
    return Stack(
      children: [
        Container(
          width: screenSize.width,
          height: screenSize.height * 0.42,
          decoration: const BoxDecoration(
              image: DecorationImage(
                  image: AssetImage(
                    "assets/images/contactus1.jpg",
                  ),
                  alignment: Alignment.center,
                  fit: BoxFit.cover)),
        ),
        Container(
Budi Prasetyo's avatar
Budi Prasetyo committed
30 31 32 33
          width: screenSize.width,
          height: screenSize.height * 0.4,
          padding: EdgeInsets.only(top: screenSize.height*0.07),

34
          child: Column(
Budi Prasetyo's avatar
Budi Prasetyo committed
35
            crossAxisAlignment: CrossAxisAlignment.center,
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
            children: [
              Text(
                'Contact Us',
                style: GoogleFonts.poppins(
                    fontSize: 37,
                    fontWeight: FontWeight.bold,
                    color: Colors.white),
              ),
            ],
          ),
        ),
      ],
    );
  }
}