mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-17 10:14:47 +00:00
* chore: update client-api * chore: integrate share endpoints * feat: add share repository * feat: add share events * feat: integrate rust events * chore: code refactor * feat: add share logic * feat: optimize share_with_user bloc * feat: share with user widget * feat: use AFPopover * feat: add shared user list * feat: fetch current user * feat: add shared usert list * feat: add mock share repo * feat: update client-api * feat: add people_with_access and general_access * fix: flutter analyze * feat: support share link * feat: edit access level * feat: invite guest * feat: optimize share menu loading perf * fix: unable to display the share link * feat: update access role * feat: support cached network image * feat: add access level callback * feat: remove guest access * fix: popover exclusive issue * fix: close edit access level popover after editing * feat: use rust share apis * chore: rename folder * test: add widget tests * test: share with user bloc test * chore: downgrade to 0.9.3
27 lines
761 B
Dart
27 lines
761 B
Dart
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,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|