logo alignment

This commit is contained in:
VE10-Sanjeev 2025-05-23 05:22:22 +00:00
parent 157b329de1
commit ca934a3a88
2 changed files with 11 additions and 8 deletions

View File

@ -472,7 +472,7 @@ class _OrgSetUpState extends State<OrgSetUp> {
color: Colors.white,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center, // now -> .center , old -> .start
children: [
Padding(
padding: const EdgeInsets.only(top: 1.0),
@ -523,8 +523,9 @@ class _OrgSetUpState extends State<OrgSetUp> {
? ClipRect(
child: Image.network(
selectedOrg!['logo'],
width: 100,
height: 30,
width: 250, // increased
height: 75, // increased
fit: BoxFit.contain,
errorBuilder:
(context, error, stackTrace) {

View File

@ -227,12 +227,14 @@ class _CustomAppBarState extends State<CustomAppBar> {
// padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 10),
child: selectedOrg?['logo'] != null
? ClipRect(
? SizedBox(
height: 60,
child: ClipRect(
child: Image.network(
selectedOrg!['logo'],
width: 130,
height: 80,
// fit: BoxFit.contain,
width: 180, //130
height: 90, //80
fit: BoxFit.contain,
errorBuilder: (context, error, stackTrace) {
return const CircleAvatar(
radius: 20,
@ -241,7 +243,7 @@ class _CustomAppBarState extends State<CustomAppBar> {
);
},
),
)
))
: const CircleAvatar(
radius: 20,
// backgroundColor: Colors.white,