Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

How to Migrate Flutter Bloc from Version 6 to 8

1.2K views
•
January 18, 2022
by
AJ Flutter Tutorials
YouTube video player
How to Migrate Flutter Bloc from Version 6 to 8

TL;DR

To migrate Flutter Bloc from version 6 to version 8, update all dependencies using the Pubspec assist extension and replace deprecated classes with BlocOverrides.runZoned. Implement a custom BlocObserver and use HydratedBlocObserver to manage local data storage. The migration involves adjusting for null safety and ensuring proper functionality of your app features.

Transcript

hi there in this tutorial we are going to  migrate flutter block from version 6 to   version 8 which is currently the latest one. The  link of the source code is in the description,   like the video, subscribe and don't miss my future  real projects. Here are all dependencies. Now   let's introduce our litter counter project that  uses MultiBlocPro... Read More

Key Insights

  • ❓ Flutter Bloc version 8 can be easily updated by using the Pubspec assist extension to update all dependencies at once.
  • 😀 The sample app showcases various features like counter management, connectivity detection, and local data storage.
  • 🏛️ Migrating from version 6 to 8 involves updating the custom BlocObserver class and using BlocOverrides.runZoned instead of Bloc.observer in the main class.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How can I update my Flutter Bloc from version 6 to version 8?

To update the Flutter Bloc, you can use the Pubspec assist extension to easily update or add new dependencies. Once updated, run 'flutter pub get' to fetch the latest versions of the dependencies.

Q: What features are showcased in the sample app?

The sample app demonstrates a counter that can be increased and decreased. It also includes connectivity detection, where the counter value changes based on the network connection type. Additionally, there's a settings page and the ability to debug Bloc and Cubit states using BlocOverrides and blocOverrides.

Q: How can I implement local data storage using HydratedBlocObserver?

To store data locally, you can use the HydratedBlocObserver and its storage feature. It allows you to persist and restore bloc states across app restarts. Implement the HydratedBlocObserver and configure it to use the desired storage mechanism.

Q: What changes are required in the main class for BlocObserver?

Instead of using Bloc.observer, which is deprecated, you should use BlocOverrides.runZoned in the main class. This ensures that the observer is correctly applied to your app's Blocs.

Summary & Key Takeaways

  • The tutorial explains how to update a Flutter Bloc from version 6 to the latest version 8, with the source code provided.

  • A sample app is introduced, featuring a counter that can be increased and decreased, connectivity detection, and a settings page.

  • The tutorial covers updating dependencies using the Pubspec assist extension, addressing errors, migrating to the custom BlocObserver class, and implementing HydratedBlocObserver for local data storage.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from AJ Flutter Tutorials 📚

Swipeable Curved Navigation Bar - Flutter thumbnail
Swipeable Curved Navigation Bar - Flutter
AJ Flutter Tutorials
Tasks App Flutter [To Do App] Part 2 - Drawer | Recycle Bin thumbnail
Tasks App Flutter [To Do App] Part 2 - Drawer | Recycle Bin
AJ Flutter Tutorials
How to install Flutter on Windows 10 | Windows 11 | Flutter for Windows | Android Studio & VS Code thumbnail
How to install Flutter on Windows 10 | Windows 11 | Flutter for Windows | Android Studio & VS Code
AJ Flutter Tutorials
Tasks App [To Do App] Part 3 - Dark & Light Theme - Changing Theme thumbnail
Tasks App [To Do App] Part 3 - Dark & Light Theme - Changing Theme
AJ Flutter Tutorials
Tasks App [To Do App] Part 5 - Expansion Panel Flutter thumbnail
Tasks App [To Do App] Part 5 - Expansion Panel Flutter
AJ Flutter Tutorials
Flutter App - Math Quiz [ From Scratch ] [ 2022 ] thumbnail
Flutter App - Math Quiz [ From Scratch ] [ 2022 ]
AJ Flutter Tutorials

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.