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: [ 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, ), )) ], ), ) ], ); }, ); } }