flutter_callouts 10.1.0 copy "flutter_callouts: ^10.1.0" to clipboard
flutter_callouts: ^10.1.0 copied to clipboard

Point stuff out for your users => Target, Transform, Configure Callouts, Record to JSON in Dev, and Play in Production

example/lib/main.dart

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_callouts/flutter_callouts.dart';
import 'package:window_manager/window_manager.dart';

// conditional import for webview ------------------
import 'register_ios_or_android_webview.dart'
if (dart.library.html) 'register_web_webview.dart';

import 'intro_page.dart';

void main() {
  runZonedGuarded<Future<void>>(
    () async {
      WidgetsFlutterBinding.ensureInitialized();

      if (fca.isMac || fca.isWindows) {
        await windowManager.ensureInitialized();

        // Define the window options
        WindowOptions windowOptions = const WindowOptions(
          size: Size(1280, 1190),
          // Set your desired width and height
          center: true,
          // Center the window on the screen
          backgroundColor: Colors.transparent,
          skipTaskbar: false,
          titleBarStyle: TitleBarStyle.normal,
          title: "My Awesome Flutter App", // Optional: Set a window title
        );

        // Wait until the window is ready to show, then apply options and show
        windowManager.waitUntilReadyToShow(windowOptions, () async {
          await windowManager.show();
          await windowManager.focus();
        });
      }

      // see conditional imports for web or mobile
      registerWebViewImplementation();

      runApp(
        const FlutterCalloutsApp(
          title: 'flutter_callouts demo',
          home: IntroPage(),
        ),
      );
    },
    (Object error, StackTrace stack) {
      // Handle the error here, e.g., log it, show a dialog, etc.
      print('Caught error in runZonedGuarded: $error');
      print('Stack trace: $stack');
      // Optionally, send the error to a crash reporting service like Sentry or Firebase Crashlytics
    },
  );
}
2
likes
110
points
632
downloads

Publisher

verified publisherbiancashouse.com

Weekly Downloads

Point stuff out for your users => Target, Transform, Configure Callouts, Record to JSON in Dev, and Play in Production

Topics

#callouts #help #toasts

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dart_mappable, device_info_plus, flutter, flutter_hooks, gap, gradient_borders, hydrated_bloc, image_network, intl, json_annotation, logger, package_info_plus, path_provider, pointer_interceptor, timeago, universal_platform

More

Packages that depend on flutter_callouts