-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
e: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamOwned by Engine team
Description
reproduction
See DlGoldenTest.TextBlurMaskFilterDisrespectCTM introduced in flutter/engine#53377
observed results
high dpi (2x)
low dpi (1x)
dpi (1x)
expected results
I'd expect the results to render the same regardless of dpi. I think that means disrespecting the ctm should take into effect the content scalar.
flutter reproduction code
Alternatively, run this code on iPhone Xs and iPhone SE and compare results.
Details
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Transform.scale(
scale: 1.0,
child: const Text(
'Crazy shadows',
style: TextStyle(
fontFamily: "Inter",
fontWeight: FontWeight.w700,
fontSize: 34,
color: Colors.white,
letterSpacing: -1,
shadows: <Shadow>[
Shadow(
offset: Offset(1.0, 1.0),
blurRadius: 23.0,
color: Color.fromARGB(255, 234, 25, 25),
),
Shadow(
offset: Offset(1.0, 1.0),
blurRadius: 2.0,
color: Color.fromRGBO(0, 0, 0, 0),
),
],
),
),
),
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
);
}
}cc @bdero
Metadata
Metadata
Assignees
Labels
e: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamOwned by Engine team