chore: remove the greetings demo

Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-09-24 14:16:12 +02:00
commit 059f33ef80
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -1,12 +1,11 @@
import 'package:flutter/material.dart';
import 'client.dart';
import 'screens/greetings_screen.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await initializeClient();
runApp(const MyApp());
runApp(const HalkyonLearnApp());
}
/// Builds a theme for the given [brightness].
@ -19,43 +18,17 @@ ThemeData _buildTheme(Brightness brightness) {
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
class HalkyonLearnApp extends StatelessWidget {
const HalkyonLearnApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Serverpod Demo',
title: 'Halkyon Learn',
theme: _buildTheme(Brightness.light),
darkTheme: _buildTheme(Brightness.dark),
themeMode: ThemeMode.system,
home: const MyHomePage(title: 'Serverpod Example'),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text(title)),
body: const GreetingsScreen(),
// To test authentication in this example app, uncomment the line below
// and comment out the line above. This wraps the GreetingsScreen with a
// SignInScreen, which automatically shows a sign-in UI when the user is
// not authenticated and displays the GreetingsScreen once they sign in.
//
// body: SignInScreen(
// child: GreetingsScreen(
// onSignOut: () async {
// await client.auth.signOutDevice();
// },
// ),
// ),
home: Scaffold(appBar: AppBar(title: Text('Halkyon Learn'))),
);
}
}