Skip to content

Instantly share code, notes, and snippets.

@NonymousMorlock
Created June 12, 2024 19:38
Show Gist options
  • Save NonymousMorlock/60f8230aed6988cf1c974b4580b1ddbc to your computer and use it in GitHub Desktop.
Save NonymousMorlock/60f8230aed6988cf1c974b4580b1ddbc to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Center(
child: Column(
children: [
CircleAvatar(
radius: 100,
backgroundImage: NetworkImage(
'https://cdn.pixabay'
'.com/photo/2014/06/03/19/38/board-361516_640.jpg',
),
),
Text(
"Hello World!",
style: TextStyle(fontSize: 24, color: Colors.red),
),
Container(
height: 50,
width: 50,
decoration: BoxDecoration(
border: Border.all(
color: Colors.deepPurpleAccent,
width: 1,
),
borderRadius: BorderRadius.circular(15)),
child: Icon(
Icons.video_call,
color: Colors.deepPurpleAccent,
),
),
],
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment