Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930)

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:
Ian Hickson
2016-05-16 11:08:07 -07:00
parent a078994ac9
commit c5ff156f24
22 changed files with 30 additions and 52 deletions

View File

@@ -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(