|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
@ -24,16 +25,20 @@ class LargeAvatar extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
Widget _getAvatar() {
|
|
|
|
Widget _getAvatar() {
|
|
|
|
if (url != null && url.isNotEmpty && Uri.parse(url).isAbsolute) {
|
|
|
|
if (url != null && url.isNotEmpty && Uri.parse(url).isAbsolute) {
|
|
|
|
return Center(
|
|
|
|
return CircleAvatar(
|
|
|
|
|
|
|
|
radius:
|
|
|
|
|
|
|
|
SizeConfig.imageSizeMultiplier * 12,
|
|
|
|
|
|
|
|
// radius: (52)
|
|
|
|
child: ClipRRect(
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(radius)),
|
|
|
|
borderRadius:BorderRadius.circular(50),
|
|
|
|
|
|
|
|
|
|
|
|
child: Image.network(
|
|
|
|
child: Image.network(
|
|
|
|
url.trim(),
|
|
|
|
url,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
width: width,
|
|
|
|
width: 700,
|
|
|
|
height: height,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else if (name == null || name.isEmpty) {
|
|
|
|
} else if (name == null || name.isEmpty) {
|
|
|
|
return Center(
|
|
|
|
return Center(
|
|
|
|
|