first step from user login
parent
24c87dc2b1
commit
ed14157e76
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
@ -0,0 +1 @@
|
||||
const MAX_SMALL_SCREEN = 660;
|
||||
@ -1,12 +1,46 @@
|
||||
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 Container(
|
||||
child: Center(
|
||||
child: Text(" welcome to Known User Login "),
|
||||
),
|
||||
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,
|
||||
),
|
||||
))
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue