-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
This works:
import 'package:flutter/material.dart';
void main() {
runApp(
new Align(
alignment: FractionalOffset.topLeft,
child: new SizedBox(
width: 400.0,
height: 400.0,
child: new FittedBox(
child: new ShaderMask(
shaderCallback: (Rect bounds) {
return new RadialGradient(
center: FractionalOffset.topLeft,
radius: 1.0,
colors: <Color>[Colors.yellow, Colors.deepOrange.shade900],
tileMode: TileMode.repeated,
).createShader(bounds);
},
blendMode: BlendMode.modulate,
child: const Text('I’m burning the memories'),
),
),
),
),
);
}
If you change alignment: FractionalOffset.topLeft to alignment: FractionalOffset.center then it stops working.
Metadata
Metadata
Assignees
Labels
engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.