accessibility_stats_logger 1.1.0 copy "accessibility_stats_logger: ^1.1.0" to clipboard
accessibility_stats_logger: ^1.1.0 copied to clipboard

This Flutter plugin is able to gather Accessibility data from iOS and Android. It gathers data from the ScreenReader, VoiceOver, font size and many more.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:accessibility_stats_logger/accessibility_stats_logger.dart';

void main() {
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  Map<String, Object?> _accessibilityStatsLogger = {};
  final _accessibilityStatsLoggerPlugin = AccessibilityStatsLogger();

  @override
  void initState() {
    super.initState();
    initAccessibilityStatsLoggerState();
  }

  Future<void> initAccessibilityStatsLoggerState() async {
    Map<String, Object?> accessibilityStatsLogger;
    try {
      accessibilityStatsLogger =
          await _accessibilityStatsLoggerPlugin.getAccessibilityStats();
    } on PlatformException {
      accessibilityStatsLogger = {};
    }
    if (!mounted) return;

    setState(() {
      _accessibilityStatsLogger = accessibilityStatsLogger;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_accessibilityStatsLogger\n'),
        ),
      ),
    );
  }
}
0
likes
140
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

This Flutter plugin is able to gather Accessibility data from iOS and Android. It gathers data from the ScreenReader, VoiceOver, font size and many more.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on accessibility_stats_logger