You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
714 B
Dart
27 lines
714 B
Dart
import 'package:car_customer_app/classes/consts.dart';
|
|
import 'package:car_customer_app/utils/utils.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class UserImage extends StatelessWidget {
|
|
final double? size;
|
|
final String? url;
|
|
|
|
const UserImage({Key? key, this.size, this.url}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
height: size ?? 60,
|
|
width: size ?? 60,
|
|
decoration: Utils.containerRadius(Colors.transparent, 1000),
|
|
clipBehavior: Clip.antiAlias,
|
|
child: Image.asset(
|
|
url ?? icons + "Blue Masked.jpg",
|
|
width: double.infinity,
|
|
height: double.infinity,
|
|
fit: BoxFit.cover,
|
|
),
|
|
);
|
|
}
|
|
}
|