wishfly 0.0.6 copy "wishfly: ^0.0.6" to clipboard
wishfly: ^0.0.6 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: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 StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Wishfly Demo',
      theme: ThemeData.light(),
      debugShowCheckedModeBanner: false,
      supportedLocales: const [Locale('en')],
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        WishflyLocalizationsDelegate(),
      ],
      home: const WishflyScreen(),
    );
  }
}

class WishflyScreen extends StatelessWidget {
  const WishflyScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Wishfly"),
        backgroundColor: Colors.black,
      ),
      body: Wishfly(
        apiKey: "your-api-key-here", // Paste your API key here
        projectId: 0, // Paste your project ID here
        localizationOverrides: const {
          "noWishes":
              "No wishes here, but you can be the first one!", // override specific key in localization
        },
        theme: WishflyThemeData.light(
          voteIconColor: Colors.black,
          addWishButtonColor: Colors.black,
        ),
      ),
    );
  }
}
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