Wrap the root widget of your existing app with Wiredash and make sure to fill in the projectId and SDK secret from the Wiredash Console > Your project > Settings > General Settings.
import'package:flutter/material.dart';
import'package:wiredash/wiredash.dart';
classMyAppextendsStatelessWidget{
@overrideWidgetbuild(BuildContext context) {
returnWiredash(
projectId: 'YOUR-PROJECT-ID',
secret: 'YOUR-SECRET',
child: MaterialApp(
// Your Flutter app is basically Wiredash's direct child.// This can be a MaterialApp, WidgetsApp or whatever widget you like.
),
);
}
}
That's already it.
Yes, it's really that easy.
4. (Optional) More features
Launch the feedback flow
Call the Wiredash.of(context).show() method from anywhere in your app to launch the Wiredash Feedback flow.