mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 18:04:18 +01:00
login and keys manage
This commit is contained in:
33
lib/component/user/user_pic_component.dart
Normal file
33
lib/component/user/user_pic_component.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class UserPicComponent extends StatefulWidget {
|
||||
double width;
|
||||
|
||||
UserPicComponent({required this.width});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return _UserPicComponent();
|
||||
}
|
||||
}
|
||||
|
||||
class _UserPicComponent extends State<UserPicComponent> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget innerWidget = Icon(
|
||||
Icons.account_circle,
|
||||
size: widget.width,
|
||||
);
|
||||
|
||||
return Container(
|
||||
width: widget.width,
|
||||
height: widget.width,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(widget.width / 2),
|
||||
),
|
||||
child: innerWidget,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user