Skip to content

Commit

Permalink
Fixes PalisadoesFoundation#2098 Fix:Overflow Error on PostWideget (Pa…
Browse files Browse the repository at this point in the history
…lisadoesFoundation#2104)

* Fix:Overflow Error on PostWideget

* Remove:Unused Hive Boxes

* Fix:Responsiveness on Icons
  • Loading branch information
AyushRaghuvanshi authored and palisadian committed Jan 10, 2024
1 parent 7940eba commit c141190
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
28 changes: 14 additions & 14 deletions lib/widgets/multi_reaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/images/🦆 icon _like_.svg',
),
Expand All @@ -36,8 +36,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/icons/angel.svg',
),
Expand All @@ -49,8 +49,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/icons/happy.svg',
),
Expand All @@ -62,8 +62,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/icons/laugh.svg',
),
Expand All @@ -75,8 +75,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/icons/love.svg',
),
Expand All @@ -88,8 +88,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/icons/tear.svg',
),
Expand All @@ -101,8 +101,8 @@ class _MultiReactionButtonState extends State<MultiReactButton> {
icon: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width / 392) * 35,
width: (MediaQuery.sizeOf(context).width / 392) * 35,
child: SvgPicture.asset(
'assets/icons/angry.svg',
),
Expand Down
12 changes: 7 additions & 5 deletions lib/widgets/post_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class NewsPost extends StatelessWidget {
fontSize: 20,
),
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"${post.creator!.firstName} ${post.creator!.lastName}",
Expand All @@ -66,9 +67,6 @@ class NewsPost extends StatelessWidget {
color: Colors.black38,
),
),
const SizedBox(
width: 115,
),
IconButton(
onPressed: () {
showModalBottomSheet<void>(
Expand Down Expand Up @@ -152,8 +150,12 @@ class NewsPost extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 35,
width: 35,
height: (MediaQuery.sizeOf(context).width /
392) *
35,
width: (MediaQuery.sizeOf(context).width /
392) *
35,
child: SvgPicture.asset(
'assets/images/comment.svg',
),
Expand Down

0 comments on commit c141190

Please sign in to comment.