wishfly 0.2.0 copy "wishfly: ^0.2.0" to clipboard
wishfly: ^0.2.0 copied to clipboard

outdated

Wishfly allows you to know what functions should your app have. All in your app.

example/lib/main.dart

import 'package:example/app_theme.dart';
import 'package:example/dashboard_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:wishfly/wishfly.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool themeDark = true;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Wishfly Demo',
      theme: themeDark ? AppTheme.darkTheme : AppTheme.lightTheme,
      debugShowCheckedModeBanner: false,
      supportedLocales: const [Locale('en')],
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        WishflyLocalizationsDelegate(),
      ],
      home: DashboardScreen(
        toggleTheme: () {
          setState(() => themeDark = !themeDark);
        },
      ),
    );
  }
}
3
likes
0
points
24
downloads

Publisher

verified publisherwishfly.dev

Weekly Downloads

Wishfly allows you to know what functions should your app have. All in your app.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, provider, shared_preferences, wishfly_shared

More

Packages that depend on wishfly