Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rendering glitches (Blur and BorderRadius suddenly not working properly) #114359

Closed
@b3nni97

Description

@b3nni97

Steps to Reproduce

  1. Execute flutter run on the code sample
  2. You can see that the rendering glitches

Expected results:
The BorderRadius must be displayed correctly at each corner and there must be no blur above the text

Actual results:
The BorderRadius is too high and is only displayed at the top left. The blur of CupertinoNavigationBar is too large in height.

Through a bisect I was able to find out the commit which caused this regression: #114119
In the commit only this PR comes into question flutter/engine#36458

In commit #114198 when the engine PR was reverted it looks like the previous video.

Before After
RPReplay_Final1667230656.MP4
RPReplay_Final1667229901.MP4

@flar

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

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Home(),
    );
  }
}

class Home extends StatefulWidget {
  const Home({Key key}) : super(key: key);

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Transform.scale(
      filterQuality: FilterQuality.none,
      scale: 0.8,
      child: ClipRRect(
        clipBehavior: Clip.hardEdge,
        borderRadius: BorderRadius.circular(20),
        child: CupertinoPageScaffold(
          navigationBar: CupertinoNavigationBar(),
          child: ListView.builder(
            itemBuilder: (_, ndx) {
              return Padding(
                padding: const EdgeInsets.all(15),
                child:
                    Text("Item $ndx", style: const TextStyle(fontSize: 32)),
              );
            },
          ),
        ),
      ),
    );
  }
}
Logs
Flutter version 3.5.0-10.0.pre.123

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: renderingUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine repository. See also e: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions