Add a feedback board to a Flutter app
Open the board in a webview_flutter screen, sign users in with a token, and keep one board for iOS and Android.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
A screen
Create a controller, turn JavaScript on, load the board's address and put the widget in a Scaffold.
Show the board in a web view, in about twenty lines.
The board is a page with scripts, so JavaScript has to be enabled.
Add webview_flutter to your pubspec and open the public roadmap address of your board. It looks like app.votefirst.app, then the language, then public/roadmap and the slug of your board. Build the address with Uri.https so the slug and any query values are encoded for you.
Nothing else is required for a first version. A visitor can read the board, vote and send a suggestion, and the vote counts the same as one cast in a browser. Wire the screen to a menu entry or a settings row, and the feature is shipped.
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class FeedbackScreen extends StatefulWidget {
const FeedbackScreen({super.key, this.token});
final String? token;
@override
State<FeedbackScreen> createState() => _FeedbackScreenState();
}
class _FeedbackScreenState extends State<FeedbackScreen> {
late final WebViewController controller;
@override
void initState() {
super.initState();
final uri = Uri.https(
'app.votefirst.app',
'/en/public/roadmap/your-board',
widget.token == null ? null : {'vf_token': widget.token},
);
controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadRequest(uri);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Ideas')),
body: WebViewWidget(controller: controller),
);
}
}Signed in votes
Without a token every visitor is anonymous. With one, a vote lands on your own customer, and your dashboard shows who they are.
Pass a token and votes carry a name.
Signing in from your own backend is on the Free plan and on Pro, and Lite leaves it out. Reading and voting as a visitor works without it.
Your backend signs a short lived token with the secret VoteFirst gives the project. The token needs two claims, sub for your own id for the person and exp for when it expires. A name claim puts a real name on their votes, and an email claim stays on their profile and is never shown on the board.
The app asks your server for a token when the screen opens and appends it to the board address as vf_token. The board's page reads it from the address when it loads and sends it with every vote and comment. A wrong or expired token is refused and the person keeps the anonymous voter they already had, so a bug in your signing never locks anyone out.
import jwt from 'jsonwebtoken';
export function boardToken(user) {
return jwt.sign(
{ sub: String(user.id), name: user.name, email: user.email },
process.env.VOTEFIRST_SSO_SECRET,
{ expiresIn: '1h' }
);
}The secret
A secret inside a Flutter app can be read by anyone who unpacks the build, and a person holding it can vote as anyone.
Keep the signing secret on your server.
The app only ever holds a token that expires in an hour.
That is the one rule worth repeating. The app calls your backend, your backend checks who is signed in and returns a fresh token, and the app puts it in the address. If you rotate the secret, old tokens stop working and the board falls back to anonymous voters until the app fetches a new one.
For a short session an hour is plenty. The token is checked when the board loads and when a vote is sent. A person who keeps the screen open past the expiry votes as the anonymous visitor until the screen opens again with a fresh token.
How it looks
The board draws itself in its own colors with your accent. It does not read a Flutter theme.
Expect the board's look, not your app's theme.
Set the board's colors and dark mode in the dashboard so the two feel related.
Match the accent and the default mode to your app, and a visitor sees a board that belongs to the product even though a web page draws it. Give the screen an app bar of your own, so the web view does not feel like a separate application.
A web view needs a connection. If the device is offline, hide the menu entry or show your own message.
iOS and Android
A Flutter app ships to two stores, and a single project collects requests from both.
One board serves both builds.
The same card shows the combined count, which neither store can show you.
Store reviews hold the same asks in different words. One card per idea shows how many people want it across both stores, so you can see whether a request is a quirk of one platform or a general wish.
When a feature ships, publish the release once both stores have approved the build. That order avoids telling Android users about a version that is still in review.
A shortcut
A separate address opens only the form that takes an idea and a reason, which suits a Send feedback row in settings.
Open the suggestion form straight from a button.
Every idea waits for your approval before it shows on the board.
Use the roadmap address for people who want to browse and vote. For people who only want to write something and leave, load app.votefirst.app with the language, then public/suggest and your slug. The suggestion form has two required fields, one line of up to 254 characters and a reason of up to 2,000.
Apple's review rules for apps with user generated content apply here too, so read the guide on passing App Review before you submit a build that lets people post.
Flutter web view board benefits
No new dependency to maintain
webview_flutter is the only package you add.
One board for two stores
Requests from iOS and Android land in one ranking.
Votes that name the customer
A signed token ties each vote to your own user.
Add the board in five steps
A first version takes less than an hour.
Create a board
Pick a slug and open its public roadmap address.
Add webview_flutter
Put the package in pubspec and run a pub get.
Build the screen
Load the address with JavaScript on and link it from a menu.
Add the token
Sign in on your server and pass vf_token in the address.
Test on both platforms
Vote once on iOS and once on Android and read the count.
What to know before you ship
- There is no Flutter package. Every Flutter app uses the address, the widget or the API.
- The web view draws the board's own look, and only your accent color carries across from the app.
- Signing in with a token is not part of Lite.
- A second app on one board is a second project, and Lite holds one.
Flutter feedback board questions
Is there a Flutter package?
No. There is no SDK for Flutter. You open the board by address in a web view, or read cards from the REST API.
Do users need an account to vote?
No. Anyone with the address can vote. A signed token turns an anonymous voter into one of your own customers.
Which plan signs users in?
Signing in with a token is included on the Free plan and on Pro at $39/mo, and Lite does not have it. Reading and voting as a visitor works on every plan.
Where does the signing secret go?
On your server. It never belongs in the app, because anyone can unpack a build and read it.
Can the web view match my app theme?
Not automatically. The board uses its own colors and your accent, so set them to match in the dashboard.
Does the board work offline?
No. It needs a connection, so hide the entry or show a message when the device is offline.
Can one board cover iOS and Android?
Yes. It is one project and every voter sees the same cards.
What does it cost?
Free covers one project and 100 votes. Beyond that, Lite costs $9/mo and Pro $39/mo, and a 14 day trial of either needs no card.
More ways to add a board
More on the pieces this guide used.
Single sign on for a board
Sign your own users in with a token.
Pass App Review
Rules for apps that let people post.
Cross platform apps
One board for every build you ship.
Add a feedback board to a React Native app
Show the board in a webview and sign users in safely.
Add a feedback board to an Android app
A WebView in Jetpack Compose and Google Play rules.
Give your Flutter users a voice
Start on Free with one project and 100 votes, and add Lite or Pro when you need them. A trial takes no card.