flutter_skin 0.0.1
flutter_skin: ^0.0.1 copied to clipboard
A runtime skin engine for Flutter projects, allowing dynamic theme changes without the need for app restarts.
import 'package:flutter/material.dart';
import 'package:flutter_skin/flutter_skin.dart';
import 'pages/home_page.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await FlutterSkin.init(
apiKey:
"fsk_560038766d4fe92e581fa479f5439306857377476f4074c709cf86a4a6b820fd",
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: FlutterSkin.toThemeData(),
home: const MyHomePage(title: 'Movie Browser'),
);
}
}