This reverts commit 55f9145ef4.
Turns out that this commit breaks apps that use the material library,
because of the _errorTextStyle DefaultTextStyle which has inherit:true.
Just setting it to false doesn't work, unfortunately, because then you
hit some sort of issue with merging that text style with others that
have inherit:true.
This commit is contained in:
@@ -97,7 +97,7 @@ class ExampleDragSource extends StatelessWidget {
|
||||
if (heavy)
|
||||
size *= kHeavyMultiplier;
|
||||
|
||||
Widget contents = new DefaultTextStyle.explicit(
|
||||
Widget contents = new DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.body1,
|
||||
textAlign: TextAlign.center,
|
||||
child: new Dot(
|
||||
@@ -185,7 +185,7 @@ class MovableBall extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget ball = new DefaultTextStyle.explicit(
|
||||
Widget ball = new DefaultTextStyle(
|
||||
style: Typography.white.body1,
|
||||
textAlign: TextAlign.center,
|
||||
child: new Dot(
|
||||
|
||||
Reference in New Issue
Block a user