dyte_core 0.4.5 dyte_core: ^0.4.5 copied to clipboard
Dyte core SDK
import 'package:dyte_core_example/constants/colors.dart';
import 'package:dyte_core_example/di/di.dart';
import 'package:dyte_core_example/logger.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'ui/home_page.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
setupDependecies();
runApp(ProviderScope(
observers: [Logger()],
child: const DyteSampleApp(),
));
}
class DyteSampleApp extends StatelessWidget {
const DyteSampleApp({super.key});
@override
Widget build(BuildContext context) {
final theme = ThemeData.dark();
return MaterialApp(
theme: theme.copyWith(
scaffoldBackgroundColor: DyteColors.background,
primaryColor: DyteColors.primary,
colorScheme: theme.colorScheme
.copyWith(
secondary: DyteColors.primary,
)
.copyWith(background: DyteColors.background),
),
home: const HomePage(),
);
}
}