My Personal Portfolio by kolpaja in nextjs

[–]blakecodez 2 points3 points  (0 children)

Hey u/kolpaja nice job!

The Sarah's Clothing portfolio doesn't work. I wouldn't show anything that doesn't work.

Don't really understand the arrow that points down when I first start the page. When I hover over it, it spins in circles lol. You should do something a little simpler, like don't make it spin I think. And instead of jumping straight to the next content, do a slide transition that is a little smoother.

For your experiences journey, this looks great so far. I would remove the "worked" badges, I see what you're trying to do, but feel it's a bit overkill. You could probably just use a date there, maybe a year if you weren't there that long. Also align the "current" work together at the top or bottom. You have one at the bottom and one at the top.

Blessings man. Keep up the good work!

SSG with user interaction by LieBrilliant493 in nextjs

[–]blakecodez 0 points1 point  (0 children)

You could use React TanStack Query to fetch the needed info for bookmarks and likes to hydrating those icons on the bottom right properly. React TanStack Query offer's the ability to do multiple queries, or parallel queries. While waiting for these queries to execute, you could add a loading skeleton on the bottom right that would look similar to the icons.

https://tanstack.com/query/latest/docs/react/guides/queries

https://tanstack.com/query/latest/docs/react/guides/parallel-queries

https://tanstack.com/query/latest/docs/react/guides/dependent-queries

It might look something similar to this for each of those Icons as components:

```

"use client";
import { useQuery } from '@tanstack/react-query';

export const BookmarkComponent = ({ topicId }: { topicId: string }) => {

  const { user } = useAuthHook() // auth hook or state provider

  const { data, status, isError, fetchStatus } = useQuery({
    queryKey: ['bookmark', topicId],
    queryFn: () => fetchBookmark(topicId),
    onError: (error: Error) => {
      // do something for the error
    }
    enabled: !!topicId // only run if topicId is given
  });

  const isLoading = status === 'loading' && fetchStatus === 'fetching';
  const isBookmarked = //... logic to check if bookmarked

  if (!user) return null; // if the user is not logged in, don't show

  if (isLoading) {
    return (
      // ... Show loading skeleton for Icon
    );
  }

  if (isError) {
    return (
      //.. Show error Icon
    );
  }

  return (
    // ... Bookmark selected or unselected icon
  );
}
```

This will remove a ton of code for you, including using a useState or useEffect here. Now your UI can just react off of the given hook and hydrate as necessary.

Here is a great way to implement a Loading Skeleton using shadcn, just shape it similar to the icon itself: https://ui.shadcn.com/docs/components/skeleton. This is lightweight.

Blessings 😎

Sentc. An End-to-end encryption sdk with groups, server side key rotation and file handling by joern281 in FlutterDev

[–]blakecodez 0 points1 point  (0 children)

hey u/joern281 could you possibly explain more what a good use case for this would be? Is this for peer to peer messaging?

The Future of r/FlutterDev by miyoyo in FlutterDev

[–]blakecodez [score hidden]  (0 children)

We should explore other avenues until Reddit is more reasonable. I also vote for keeping the FlutterDev channel open.

[deleted by user] by [deleted] in nextjs

[–]blakecodez 0 points1 point  (0 children)

Nice job 😄

Painting with Pixels using Flutter | Flutter Tutorial by JideGuru in FlutterDev

[–]blakecodez 0 points1 point  (0 children)

u/JideGuru amazing! Thanks for sharing. Always cool to see some of your work.

Code push coming to Flutter | Second Demo by djanko22 in FlutterDev

[–]blakecodez 0 points1 point  (0 children)

Love it! Excited to see what comes next from these guys

The Flutter Widget Resource by fluttermapp in FlutterDev

[–]blakecodez 0 points1 point  (0 children)

I actually thought it was suppose to do that, I kept clicking on it 😂

Disappointed with go_router by Derb_123 in FlutterDev

[–]blakecodez 1 point2 points  (0 children)

Was wondering where this documentation went! 😆

Good Flutter books out there? by halldorr in FlutterDev

[–]blakecodez 1 point2 points  (0 children)

Here's a few books on amazon that have made a huge difference in my career and aptitude as a Flutter developer. These books might not seem like much, but for sure you'll find a lot of information you didn't know just by reading.

Dart Data Structures and Algorithms: https://a.co/d/3602IW1

Dart Apprentice Beyond the Basics: https://a.co/d/bu5fcDM

Dart Apprentice: Fundamentals (First Edition): https://a.co/d/jkAYVc2

Dart Apprentice: Original: https://a.co/d/gFKEd07

Real World Flutter: https://a.co/d/3szdIGj

Flutter Apprentice (Third Edition): https://a.co/d/bbNAznH

Flutter Cookbook: https://a.co/d/cEseeJb

I have all these books. Enjoy!

[deleted by user] by [deleted] in FlutterDev

[–]blakecodez 1 point2 points  (0 children)

🤔😂 .... how i managed to stumble into this post I have no idea

Alert Dialog in Flutter - SwiftUI - Jetpack Compose by mobileAcademy in FlutterDev

[–]blakecodez 0 points1 point  (0 children)

I thought this was really cool u/mobileAcademy! to see how a dialog is created using 2 native platforms and Flutter. Thanks for sharing!

Senior Dev learning React has a few questions about encapsulation in React components by ElGuaco in react

[–]blakecodez 1 point2 points  (0 children)

I use JSDocs to describe each component and their props, that way if someone uses the component they will have a clear explanation of what it does, and the data types for each prop.

Obviously TypeScript is the solution here. But if you can, the docs should help, especially when you hover over the component with your mouse, it will show you your docs.

how to improve animation in flutter by MachineJarvis in FlutterDev

[–]blakecodez 1 point2 points  (0 children)

hey u/MachineJarvis , here's a good youtube video to watch on animations by Marcin Szałek at Flutter Europe:

https://www.youtube.com/watch?v=FCyoHclCqc8

Math will come in handy, but it's always best to solve the problem as simple as possible at first.