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

    OpenSeadragon: Implementing Image Zooming and Panning in Pure JavaScript

    In web development , creating interactive visualizations can be a huge boon for engagement. OpenSeadragon, an open-source JavaScript library, facilitates smooth image zooming and panning. Here, we'll explore how to implement OpenSeadragon using pure JavaScript, taking you through practical examples to get started quickly. OpenSeadragon is a powerful library designed to display high-resolution images on the web. It allows users to zoom in on images smoothly, providing detailed views without sacrificing performance. This library was built with the needs of users in mind, as you can integrate it into your projects with minimal fuss. Before we dive into code, ensure you have the OpenSeadragon library included in your project. You can do this by adding a script tag to your HTML:

      Understanding OpenSeadragon Constructor Options

      OpenSeadragon is a powerful open-source JavaScript library that facilitates the viewing of large images in a zoomable interface, making it ideal for applications where high-resolution images are pivotal. Utilizing OpenSeadragon in your projects allows you to enhance user experiences with smooth and responsive image navigation. In this article, we will explore the constructor options available in OpenSeadragon. Constructor options allow you to customize the viewer to your specific needs, improving usability, and enhancing functionality. When initializing an OpenSeadragon viewer, you pass a configuration object, including various options tailored to your application. Below is the basic syntax used to create a viewer:

      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

        Flutter: Change Border Thickness of TextField

        When developing applications in Flutter, one of the common components you'll encounter is the TextField . Customizing its appearance can significantly enhance user experience, and one often overlooked feature is the border thickness. In this guide, we'll explore how to change the border thickness of a TextField , providing practical examples and diagrams along the way. Before diving into customization, let’s quickly review the TextField widget. This essential Flutter component allows users to input text. However, its default styling may not always align with your app's design aesthetics. By default, a TextField has an underline, but Flutter allows you to customize this border using the InputDecoration class. This class provides several properties to control the appearance of the border, including thickness.

          Flutter ExpansionPanel Border Radius: Enhancing UI Design

          ExpansionPanel allows Flutter devs to expand and collapse content, which is beneficial for managing space and providing a better user experience. But how do you elevate the aesthetic quality of these panels? The answer lies in the borderRadius . In this post, we’ll explore how to seamlessly integrate borderRadius in Flutter's ExpansionPanel , enhancing both functionality and style. Before diving into customization, let’s quickly review what an ExpansionPanel is in Flutter. An ExpansionPanel is a widget designed to show or hide the contents of a section when tapped. It usually consists of a header and the expandable content beneath it. Here’s a basic example:

            Dealing with Flutter Error Status Code 401

            When developing applications with Flutter, you might encounter various errors that can halt your progress. One of the most common is the Flutter error status code 401 , which indicates an authentication issue. Understanding this error is crucial for any developer aiming to build seamless applications. In this post, we'll explore what status code 401 means, how to resolve it, and some common scenarios where you might encounter it. Status code 401, also known as "Unauthorized," is an HTTP response status code that indicates that a request has not been applied because it lacks valid authentication credentials for the target resource. In simpler terms, this error occurs when your application tries to access a resource for which it does not have permission due to missing or incorrect authentication information. When facing this error, consider the following steps for troubleshooting: