Code

mail@pastecode.io avatar
unknown
dart
2 years ago
926 B
2
Indexable
import 'package:flutter/material.dart';

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

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(
          "Mening ilovam",
        ),
      ),
      body: Center(
        child: ClipOval(
          child: Container(
            width: 200,
            height: 200,
            decoration: BoxDecoration(
                // borderRadius: BorderRadius.circular(30),
                shape: BoxShape.circle,
                border: Border.all(color: Colors.green, width: 5)),
            child: Image.asset(
              'asstes/man_image.jpg',
              fit: BoxFit.cover,
            ),
          ),
        ),
      ),
    );
  }
}