Skip to content

TextField inside Opacity has wrong selection Leader/Follower transformation #30587

@liyuqian

Description

@liyuqian

Here's a screenshot:
flutter_22

It can be reproduced by:

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(title: Text('Opacity TextField')),
        body: Center(
          child: Container(
            width: 100,
            height: 100,
            child: Opacity(
              opacity: 0.5,
              child: TextField(),
            ),
          ),
        ),
      ),
    );
  }
}

#30586 inspired me to discover this bug but that issue has nothing to do with this bug (i.e., this bug exists before flutter/engine#8362)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsc: renderingUI glitches reported at the engine/skia or impeller rendering level

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions