Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL

    Understanding Flutter’s Stateful Modal Sheet

    When using Flutter to build apps, you probably want to create dynamic and responsive UI components. One weapon in your arsenal is the stateful modal sheet , a versatile and powerful tool for displaying content in a modal format. In this post, we'll explore this feature. _f_ocusing on its creation, features, and how to handle state effectively through various scenarios. A stateful modal sheet in Flutter allows you to display a sheet (similar to a dialog) that can hold dynamic content. Unlike a stateless modal sheet, which remains unchanged after being rendered, a stateful modal sheet can update its content based on user interaction or other events in the application. To illustrate this, consider the following applications of a stateful modal sheet:

      Flutter Supabase SignInWithPassword Error Handling

      When developing applications with Flutter and utilizing Supabase for backend services, error handling is crucial. In this post, we'll dive into best practices for managing errors specifically during the sign-in process when using the signInWithPassword method. Supabase provides a seamless way to authenticate users, but like any system, things can occasionally go wrong. Here’s a quick overview of the error handling process when using the signInWithPassword method. While working with signInWithPassword , you may encounter the following error scenarios:

      I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

      This has been a really good investment!

      Advance your career with newline Pro.

      Only $40 per month for unlimited access to over 60+ books, guides and courses!

      Learn More

        Using PSD Designs in Flutter

        Converting PSD designs into Flutter applications. can often prove challenging This blog post will explore the process and considerations involved in working with Flutter and PSD designs. PSD (Photoshop Document) files use layered images to create detailed visual elements of applications. The challenge for developers is to accurately translate these designs into Flutter widgets, ensuring the final product retains the intended aesthetics and user experience. Before diving further into the specifics of PSD to Flutter conversions, let’s revisit why Flutter is a favorite among developers:

          Building Your First Flutter App - Scaffold()

          Among the core building blocks that Flutter provides, Scaffold stands out as one of the most vital widgets for layout design. This post will guide you through the essentials of using Scaffold() to structure your app's interface effectively. The Scaffold widget is a part of the Material Design framework in Flutter. It provides a framework that implements the basic visual layout structure of the Material Design. When you're building a Flutter application, the Scaffold widget is often your starting point. Here’s why: Let’s create a simple Flutter application using Scaffold() . This example will demonstrate the essentials of a typical app layout with navigation.

            Flutter: Fill Image in Container

            Flutter has rapidly gained traction as a premier toolkit for cross-platform mobile app development. Among its many features, the ability to handle images within your layouts effectively is key for creating visually appealing applications. A common requirement is to fill an image within a container, ensuring that it adapts flawlessly to the space provided. In this article, we’ll explore how to fill an image in a container in Flutter. Before diving into the implementation, it's essential to grasp how Flutter manages images. When you place an image in a container, it doesn't automatically scale or crop to fit the container's dimensions. Instead, you must specify certain properties to control this behavior. Here are a few important properties you should consider when filling an image within a container: