u/Busy-Cry9256

I built a Flutter plugin that renders actual Flutter widgets as iOS/Android home screen widgets
▲ 77 r/FlutterFlow+1 crossposts

I built a Flutter plugin that renders actual Flutter widgets as iOS/Android home screen widgets

I've been annoyed that existing home widget packages make you re-build your UI in native Swift/Kotlin. So I made a plugin that lets you use any Flutter widget as the actual widget UI.

https://imgur.com/a/Xm0a18D

https://imgur.com/a/Gnlstuf

How it works: renders your widget tree to a PNG off-screen using an Overlay + RepaintBoundary, pushes it to the native side (WidgetKit / Glance), and reloads the timeline. Tap actions work too — you define rectangular hotspots with relative coordinates and get callbacks via a Dart stream.

await FlutterHomescreenWidget.update(
  widgetName: 'ClockWidget',
  size: const Size(329, 155),
  content: MyClockUI(),
);

The example above is a glassmorphism clock widget built entirely in Flutter — no Swift UI code for the design at all.

Still early (v0.1.3), Android Glance support is in but less tested than iOS. Would love feedback, especially if anyone runs into font or image loading issues.

pub.dev: https://pub.dev/packages/flutter_homescreen_widget
GitHub: https://github.com/leejia324/flutter_homescreen_widget

u/Busy-Cry9256 — 11 days ago

I built a Flutter roulette wheel package that fixes what bugged me about existing ones

I recently published my first Flutter package and wanted to share it here. English isn't my first language so sorry if anything reads weirdly!

I was building a roulette wheel for a project and tried a few existing packages, but kept running into the same frustrations:

  • Packages that change section width to reflect probability (I wanted equal-sized sections with weighted odds)
  • No control over whether icons/text rotate with the wheel or stay upright
  • Pointer always stuck inside the wheel with no way to adjust its position

So I built my own: flutter_custom_roulette

What it does differently:

  • Equal section widths with weight-based probability — or optionally proportional widths, your call (weightedSections)
  • rotateWithWheel per item — content can spin with the wheel or always face the user
  • pointerOffset to place the pointer tip anywhere inside or outside the wheel border
  • Drop in any Flutter widget as section content (SVG, Image, Icon, whatever)
  • Built-in RouletteButton with gradient, spin-lock, and custom label support
  • Full border theming with gradient support

pub.dev: https://pub.dev/packages/flutter_custom_roulette
GitHub: https://github.com/leejia324/flutter_custom_roulette

This is my first published package so feedback is very welcome — bugs, missing features, API design thoughts, anything. Thanks for checking it out!

u/Busy-Cry9256 — 18 days ago