Skip to content

Commit

Permalink
fix: organization page clipping organization logo
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMuuo committed Oct 14, 2024
1 parent 086d49d commit 3604b4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/tools/organizations/pages/organization_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ class OrganizationView extends StatelessWidget {
sliver: SliverToBoxAdapter(
child: CircleAvatar(
radius: 60,
backgroundImage: CachedNetworkImageProvider(
organization.logo!,
child: ClipRRect(
borderRadius: BorderRadius.circular(60),
child: CachedNetworkImage(
imageUrl: organization.logo!,
fit: BoxFit.fill,
),
),
),
),
Expand Down
4 changes: 3 additions & 1 deletion lib/tools/organizations/pages/organizations_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class _OrganizationsPageState extends State<OrganizationsPage>
if (snapshot.connectionState != ConnectionState.done) {
return ListView.builder(
itemBuilder: (context, index) => const ListTile(
leading: CircleAvatar(), trailing: CircleAvatar(radius: 5)),
leading: CircleAvatar(),
trailing: CircleAvatar(radius: 5),
),
);
}
//
Expand Down

0 comments on commit 3604b4b

Please sign in to comment.