/
main.dart
37 lines (30 loc) · 795 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import 'package:flutter/material.dart';
import 'package:awesomeavatar/awesomeavatar.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Demo Avatar'),
),
body: Center(
child: AwesomeAvatar(
networkImage: "https://pbs.twimg.com/profile_images/558392148697939968/FSHEYq_5_400x400.png",
backgroundColor: Colors.red,
radius: 50,
outRadius: 5,
),
),
),
);
}
}