Files
rely/lib/main.dart
T
2026-02-14 20:10:16 +01:00

56 lines
1.6 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:relationship_saver/core/config/app_config.dart';
import 'package:relationship_saver/core/config/app_theme.dart';
void main() {
runApp(const ProviderScope(child: RelationshipSaverApp()));
}
class RelationshipSaverApp extends StatelessWidget {
const RelationshipSaverApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Relationship Saver',
debugShowCheckedModeBanner: false,
theme: AppTheme.light(),
home: const _LandingScreen(),
);
}
}
class _LandingScreen extends StatelessWidget {
const _LandingScreen();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Relationship Saver')),
body: Padding(
padding: const EdgeInsets.all(24),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'Backend gateway scaffold is ready.',
style: Theme.of(context).textTheme.headlineSmall,
),
const SizedBox(height: 12),
Text(
'Mode: ${AppConfig.useFakeBackend ? 'Fake gateway' : 'REST gateway'}',
style: Theme.of(context).textTheme.bodyLarge,
),
const SizedBox(height: 8),
Text(
'Base URL: ${AppConfig.backendBaseUrl}',
style: Theme.of(context).textTheme.bodyMedium,
),
],
),
),
);
}
}