Created
June 12, 2024 19:38
-
-
Save NonymousMorlock/60f8230aed6988cf1c974b4580b1ddbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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