diff --git a/assets/images/dr_avatar.png b/assets/images/dr_avatar.png new file mode 100644 index 00000000..693ebd7a Binary files /dev/null and b/assets/images/dr_avatar.png differ diff --git a/lib/config/config.dart b/lib/config/config.dart new file mode 100644 index 00000000..1ca691d2 --- /dev/null +++ b/lib/config/config.dart @@ -0,0 +1 @@ +const MAX_SMALL_SCREEN = 660; \ No newline at end of file diff --git a/lib/util/util.init b/lib/util/util.init deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/widgets/auth/known_user_login.dart b/lib/widgets/auth/known_user_login.dart index bc2a7455..8e9d7c42 100644 --- a/lib/widgets/auth/known_user_login.dart +++ b/lib/widgets/auth/known_user_login.dart @@ -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: [ + 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: [ + 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, + ), + )) + ], + ), + ) + ], + ); + }, ); } } diff --git a/pubspec.yaml b/pubspec.yaml index f7855a79..70523f98 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -60,6 +60,7 @@ flutter: - assets/images/password_icon.png - assets/images/user_id_icon.png - assets/images/login_btn_arrow_icon.png + - assets/images/dr_avatar.png # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see