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.
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
|
|
|
|
class KnownUserLogin extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return LayoutBuilder(
|
|
|
|
builder: (ctx, constraints) {
|
|
|
|
int maxSmallScreenSize = MAX_SMALL_SCREEN;
|
|
|
|
bool isSmallScreen = constraints.maxWidth <= maxSmallScreenSize;
|
|
|
|
return Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
color: Hexcolor('#CCCCCC'),
|
|
|
|
),
|
|
|
|
borderRadius: BorderRadius.circular(50)),
|
|
|
|
margin: const EdgeInsets.fromLTRB(0, 20.0, 30, 0),
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
height: 100,
|
|
|
|
width: 100,
|
|
|
|
decoration: new BoxDecoration(
|
|
|
|
// color: Colors.green, // border color
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
border: Border.all( color: Hexcolor('#CCCCCC'))
|
|
|
|
),
|
|
|
|
child: CircleAvatar(
|
|
|
|
child: Image.asset(
|
|
|
|
'assets/images/dr_avatar.png',
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|