This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Clubhouse | |
* Plugin URI: https://fyrware.com/ | |
* Description: Turn WordPress into a premium clubhouse with paid memberships and more. | |
* Author: Fyrware | |
* Version: 1.0.0 | |
* Author URI: https://fyrware.com | |
* Text Domain: clubhouse-core | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('admin_menu', function() { | |
global $submenu; | |
PageController::get_instance()->register_page([ | |
'id' => 'woocommerce-software-manager-downloads', | |
'title' => __('Downloads', WC_SOFTWARE_MANAGER_TEXT_DOMAIN), | |
'path' => 'wc-admin&path=/software-manager', | |
'parent' => 'woocommerce-software-manager', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppRoot extends HookConsumerWidget { | |
const AppRoot({ super.key }); | |
@override | |
Widget build(BuildContext context, WidgetRef ref) { | |
final workspaceList = useWorkspaceList(ref); | |
final authentication = useAuthentication(ref); | |
final realtimeWebSocket = useWebSocket(ref, realtimeSocket); | |
useWebSocketEvent(realtimeWebSocket, IncomingRealtimeEvent.authKeyUpdated, (key) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
const Map<ShortcutActivator, Intent> appShortcuts = { | |
SingleActivator(LogicalKeyboardKey.tab): NextFocusIntent(), | |
SingleActivator(LogicalKeyboardKey.tab, shift: true): PreviousFocusIntent() | |
}; | |
final Map<Type, Action<Intent>> appActions = { | |
NextFocusIntent: NextFocusAction(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
const Map<ShortcutActivator, Intent> appShortcuts = { | |
SingleActivator(LogicalKeyboardKey.tab): NextFocusIntent(), | |
SingleActivator(LogicalKeyboardKey.tab, shift: true): PreviousFocusIntent() | |
}; | |
final Map<Type, Action<Intent>> appActions = { | |
NextFocusIntent: NextFocusAction(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
class App extends StatelessWidget { | |
const App({ super.key }); | |
@override | |
Widget build(BuildContext context) { | |
return FocusTraversalGroup( | |
policy: WidgetOrderTraversalPolicy(), | |
child: Builder( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
class App extends StatelessWidget { | |
const App({ super.key }); | |
@override | |
Widget build(BuildContext context) { | |
return FocusTraversalGroup( | |
policy: WidgetOrderTraversalPolicy(), | |
child: Container() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
const Map<ShortcutActivator, Intent> appShortcuts = { | |
SingleActivator(LogicalKeyboardKey.tab): NextFocusIntent(), | |
SingleActivator(LogicalKeyboardKey.tab, shift: true): PreviousFocusIntent() | |
}; | |
final Map<Type, Action<Intent>> appActions = { | |
NextFocusIntent: NextFocusAction(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
final appActions = { | |
NextFocusIntent: NextFocusAction(), | |
PreviousFocusIntent: PreviousFocusAction() | |
}; | |
class App extends StatelessWidget { | |
const App({ super.key }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
const Map<ShortcutActivator, Intent> appShortcuts = { | |
SingleActivator(LogicalKeyboardKey.tab): NextFocusIntent(), | |
SingleActivator(LogicalKeyboardKey.tab, shift: true): PreviousFocusIntent() | |
}; | |
class App extends StatelessWidget { | |
const App({ super.key }); |
NewerOlder