Skip to content

Example code for building a browser extension with Flutter.

Notifications You must be signed in to change notification settings

SlowGen/bookmarks-demo

Repository files navigation

bookmarks

This is a DEMO project for building a browser extension alongside a Flutter mobile app. This code will simulate a bookmarking app that allows a user to access a (fake) database of bookmarks that they can access, add, edit and delete using either the mobile app or the browser extension.

This example code was built as part of a presentation for FlutterConUSA2024.

You can view the slide deck here: Browser Extensions with Flutter ADD PDF LINK

Video of the presentation will be available soon.

Getting Started

You must have Flutter, node and npm installed on your machine to run this project.

  1. Clone the repo
  2. Run npm install in the root directory
  3. Run flutter pub get

There are two demos in this project: One demonstrating usage of the Chrome Tabs API and the other demonstrating usage of the Chrome Storage API. To build the Tabs extension, run scripts/build-tabs.sh to compile the typescript code, run the versioning script and build into the build/web directory. You can then load unpacked the extension from there. For Storage, run scripts/build-storage.sh.

You can build and run the mobile app as you would normally.

For more on Flutter/Dart JS interop: Flutter JS Interop

For more on extensions: Chrome Extensions

How to convert to Safari: Safari Extensions

About

Example code for building a browser extension with Flutter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published