Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
import 'package:appflowy/workspace/presentation/widgets/dialogs.dart';
import 'package:appflowy_ui/appflowy_ui.dart';
import 'package:flutter/material.dart';
class WidgetTestWrapper extends StatelessWidget {
const WidgetTestWrapper({super.key, required this.child});
final Widget child;
@override
Widget build(BuildContext context) {
final brightness = Theme.of(context).brightness;
final themeBuilder = AppFlowyDefaultTheme();
return ToastificationWrapper(
child: MaterialApp(
home: Material(
child: AppFlowyTheme(
data: brightness == Brightness.light
? themeBuilder.light()
: themeBuilder.dark(),
child: child,
),
),
),
);
}
}