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.
mohemm-flutter-app/lib/ui/screens/profile/widgets/profile_panel.dart

37 lines
1.5 KiB
Dart

3 years ago
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
3 years ago
import 'package:mohem_flutter_app/classes/utils.dart';
import 'package:mohem_flutter_app/models/member_information_list_model.dart';
3 years ago
import 'package:mohem_flutter_app/ui/screens/profile/widgets/profile_info.dart';
class ProfilePanle extends StatelessWidget {
3 years ago
ProfilePanle(this.memberInformationList);
late MemberInformationListModel memberInformationList;
3 years ago
@override
Widget build(BuildContext context) {
double _width = MediaQuery.of(context).size.width;
return Container(
margin: EdgeInsets.fromLTRB(5, 0, 5, 10),
height: MediaQuery.of(context).size.height,
child: Stack(children: [
Container(
width: _width,
margin: EdgeInsets.only(top: 50),
padding: EdgeInsets.only(top: 50),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: const BorderRadius.only(topLeft: Radius.circular(25), topRight: Radius.circular(25)),
boxShadow: [BoxShadow(color: Colors.white60, blurRadius: 10, spreadRadius: 10)]),
3 years ago
child: ProfileInFo(memberInformationList),
3 years ago
),
Container(height: 100, alignment: Alignment.center, child: ProfileImage())
]));
}
3 years ago
Widget ProfileImage() => CircleAvatar(
radius: 70,
backgroundImage: MemoryImage(Utils.getPostBytes(memberInformationList.eMPLOYEEIMAGE)),
backgroundColor: Colors.black,
);
3 years ago
}