playx 0.2.1 playx: ^0.2.1 copied to clipboard
Playx eco system helps with redundant features as it provides many utilities for themes, widgets and more.
import 'package:flutter/material.dart';
import 'package:playx/playx.dart';
import 'package:playx_example/config/theme_config.dart';
import 'package:playx_example/home.dart';
import 'config/app_config.dart';
void main() async {
final config = AppConfig();
Playx.runPlayx(
appConfig: config,
themeConfig: const AppThemeConfig(),
app: const MyApp(),
//not necessary
sentryOptions: (options) {
options.dsn = AppConfig.sentryKey;
},
);
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const PlayxMaterialApp(
title: 'Flutter Demo',
home: Home(),
);
}
}