Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No accessibility support (screen readers) #266

Open
nilsreichardt opened this issue Jul 18, 2020 · 0 comments
Open

No accessibility support (screen readers) #266

nilsreichardt opened this issue Jul 18, 2020 · 0 comments

Comments

@nilsreichardt
Copy link

Description

At the moment flares can't be detected by screen readers...

Demo

You can see that Talkback (Android screen reader) can't focus the flare widget.

FlareScreenReader

Steps to reproduce

Code to reproduce
import 'package:flare_flutter/flare_actor.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Demo',
      home: Scaffold(
        appBar: AppBar(
          title: Text("Flare"),
        ),
        body: Center(
          child: Container(
            height: 200,
            child: FlareActor(
              "assets/privacy.flr", // You can use any flare file
              animation: "Lock",
              fit: BoxFit.fitHeight,
            ),
          ),
        ),
      ),
    );
  }
}

  1. Copy code to reproduce
  2. Run app
  3. Enable a screen reader (like Talkback on Android)
  4. Try to focus the flare widget with a screen reader --> impossible

How it should be

The Flare package should use Semantics. Every flare has a default value like 'unknown animation'. With the parameter semanticLabel developers can set a description of the flare animation.

You can see this behavior for images:

child: Image.asset(
  'assets/logo.png',
  semanticLabel: 'Company logo',
),

Docs (image):

/// A Semantic description of the image.
///
/// Used to provide a description of the image to TalkBack on Android, and
/// VoiceOver on iOS.
final String semanticLabel;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant