Lesson 04

  1. ะกัั‹ะปะบะฐ ะบ - https://pub.dev/packages/google_fonts

// Some code
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class Lesson04 extends StatefulWidget {
  const Lesson04({super.key});

  @override
  State<Lesson04> createState() => _Lesson04State();
}

class _Lesson04State extends State<Lesson04> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,

      body: SafeArea(
        child: Padding(
          padding: const EdgeInsets.only(top: 24, right: 24, left: 24),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Image.asset('assets/logo.png'),

              SizedBox(height: 32),

              Text(
                'Sign in to your\nAccount',
                style: GoogleFonts.inter(
                  textStyle: TextStyle(
                    fontSize: 32,
                    fontWeight: FontWeight.bold,
                  ),
                ),
              ),

              SizedBox(height: 12,),

              Text(
                'Enter your email and password to log in ',
                style: GoogleFonts.inter(
                  textStyle: TextStyle(
                    fontSize: 12,
                    fontWeight: FontWeight.w500,
                    color: Color(0xFF6C7278),
                  ),
                ),
              ),

              SizedBox(height: 32,),

              Text('Email', style: GoogleFonts.plusJakartaSans(
                textStyle: TextStyle(
                  fontSize: 12,
                  fontWeight: FontWeight.w500,
                  color: Color(0xFF6C7278),
                )
              ),),

              TextField(
                style: TextStyle(
                  fontSize: 14, fontWeight: FontWeight.w600,
                  color: Color(0xFF1A1C1E)
                ),
                decoration: InputDecoration(
                  contentPadding: EdgeInsets.symmetric(
                    horizontal: 14,
                    vertical: 12.5
                  ),
                  border: OutlineInputBorder(
                    borderRadius: BorderRadius.circular(10),
                    borderSide: BorderSide(
                      color: Color(0xFF1D61E7),
                    )
                  ),
                  enabledBorder: OutlineInputBorder(
                      borderRadius: BorderRadius.circular(10),
                      borderSide: BorderSide(
                          color: Color(0xFFEDF1F3)
                      )
                  ),


                ),
              ),

              SizedBox(height: 16,),

              Text('Password', style: GoogleFonts.plusJakartaSans(
                  textStyle: TextStyle(
                    fontSize: 12,
                    fontWeight: FontWeight.w500,
                    color: Color(0xFF6C7278),
                  )
              ),),

              


            ],
          ),
        ),
      ),
    );
  }
}

Last updated