Thursday, March 5, 2026

flutter uygulama



 import 'package:flutter/material.dart';


void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color.fromARGB(255, 226, 102, 31),
      appBar: AppBar(
        backgroundColor: const Color.fromARGB(255, 226, 102, 31),
        title: Text(
          "Bu başlığımız",
          style: TextStyle(
            fontSize: 18,
            color: Colors.white,
            fontFamily: "Times New Roman",
            letterSpacing: 1.5,
          ),
        ),
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          width: 280,
          height: 350,
          decoration: BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.circular(10),
          ),
          child: Padding(
            padding: const EdgeInsets.symmetric(horizontal: 20),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                SizedBox(
                  height: 40,
                ),
                Center(
                  child: Text(
                    "User Profile",
                    style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
                  ),
                ),
                SizedBox(
                  height: 15,
                ),
                Center(
                  child: SizedBox(
                    width: 100,
                    height: 100,
                    child: CircleAvatar(
                      backgroundImage: AssetImage("assets/recep.jpg"),
                    ),
                  ),
                ),
                SizedBox(
                  height: 10,
                ),
                Text(
                  "Name",
                  style: TextStyle(fontSize: 10),
                ),
                Container(
                  width: double.infinity,
                  padding: EdgeInsets.only(bottom: 5),
                  decoration: BoxDecoration(
                    border: Border(
                      bottom: BorderSide(width: 0.5),
                    ),
                  ),
                  child: Text(
                    "Recep ÖZEN",
                    style: TextStyle(fontSize: 14, fontFamily: "Arial"),
                  ),
                ),
                SizedBox(
                  height: 10,
                ),
                Text(
                  "Location",
                  style: TextStyle(fontSize: 10),
                ),
                Container(
                  width: double.infinity,
                  padding: EdgeInsets.only(bottom: 5),
                  decoration: BoxDecoration(
                    border: Border(
                      bottom: BorderSide(width: 0.5),
                    ),
                  ),
                  child: Text(
                    "SAKARYA",
                    style: TextStyle(fontSize: 14, fontFamily: "Arial"),
                  ),
                ),
                SizedBox(
                  height: 10,
                ),
                Text(
                  "Favori Diller",
                  style: TextStyle(fontSize: 10, color: Colors.blue),
                ),
                Container(
                  width: double.infinity,
                  padding: EdgeInsets.only(bottom: 5),
                  decoration: BoxDecoration(
                    border: Border(
                      bottom: BorderSide(width: 0.5),
                    ),
                  ),
                  child: Text(
                    "İngilizce, Boşnakça",
                    style: TextStyle(fontSize: 14, fontFamily: "Arial"),
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

No comments: