import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// TODO: implement build
return MaterialApp(
home: Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text("Demo"),
),
body: MyHomePage(),
),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
// TODO: implement build
return Center(child: Container(
child: ClipOval(child: Image.network("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1580587706041&di=0d6e369fc135a9c427cda631e10ebe22&imgtype=0&src=http%3A%2F%2Fwww.beihaiting.com%2Fuploads%2Fallimg%2F170330%2F10723-1F3301UI5427.jpg"),),
));
}
}
网友评论