appsonair_flutter_appremark 0.0.2 copy "appsonair_flutter_appremark: ^0.0.2" to clipboard
appsonair_flutter_appremark: ^0.0.2 copied to clipboard

AppsOnAir AppRemark flutter sdk allows you to capture current screen on device shake directly through AppsOnAir.

example/lib/main.dart

import 'package:appsonair_flutter_appremark/app_remark_service.dart';
import 'package:flutter/material.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> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: const DemoApp(),
      ),
    );
  }
}

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

  @override
  State<DemoApp> createState() => _DemoAppState();
}

class _DemoAppState extends State<DemoApp> {
  @override
  void initState() {
    super.initState();
    Future.delayed(const Duration(milliseconds: 100), () async {
      await AppRemarkService.initialize(context, options: {
        'pageBackgroundColor': '#FFC0CB',
        'descriptionMaxLength': 25,
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.amber.shade100,
      body: Center(
        child: ElevatedButton(
          onPressed: () async {
            // to open "Add Remark" screen manually
            await AppRemarkService.addRemark(context);
          },
          child: const Text('Add Remark'),
        ),
      ),
    );
  }
}
1
likes
0
points
25
downloads

Publisher

verified publisherappsonair.com

Weekly Downloads

AppsOnAir AppRemark flutter sdk allows you to capture current screen on device shake directly through AppsOnAir.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on appsonair_flutter_appremark

Packages that implement appsonair_flutter_appremark