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 { auth } from "./src/js/nhost.js"; | |
import { initClient, getClient } from "./src/js/graphqlClient.js"; | |
export default { | |
auth: { | |
checkRole: (requiredRole) => { | |
//Used by pageql:authRole directive | |
//Return false if user's role fails to hit specifications | |
//Returning false hides the component |
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/material.dart'; | |
import 'package:example/theme/style.dart'; | |
import 'package:example/routes.dart'; | |
import 'package:example/bloc/bloc-prov-tree.dart'; | |
import 'package:example/bloc/bloc-prov.dart'; | |
import 'package:example/blocs/blocs.dart'; | |
import 'blocs/blocs.dart'; | |
void main() { | |
runApp(ExampleApp()); |
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'; | |
import 'package:example/screens/example1/examplescreen1.dart'; | |
import 'package:example/screens/example2/examplescreen2.dart'; | |
final Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{ | |
"/": (BuildContext context) => ExScreen1(), | |
"/ExScreen2": (BuildContext context) => ExScreen2(), | |
}; |
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/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:exampleapp/blocprovs/example-bloc-prov.dart'; | |
import 'package:exampleapp/blocs/example-bloc.dart'; | |
import 'package:exampleapp/theme/style.dart'; | |
import 'package:exampleapp/screens/example1/examplescreen1.dart'; | |
import 'package:exampleapp/screens/example2/examplescreen2.dart'; | |
void main() { | |
runApp(ExampleApp()); |