Unverified Commit c3b2175a authored by Qun Cheng's avatar Qun Cheng Committed by GitHub

Update golden tests (#128914)

parent c7167765
......@@ -20,6 +20,7 @@ class TextMagnifierExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(useMaterial3: false),
home: Scaffold(
body: Padding(
padding: const EdgeInsets.symmetric(horizontal: 48.0),
......
......@@ -20,8 +20,9 @@ void main() {
testWidgets('gradient matches golden', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(
home: SizedBox(
MaterialApp(
theme: ThemeData(useMaterial3: false),
home: const SizedBox(
width: 800,
height: 600,
child: RepaintBoundary(
......
......@@ -1183,6 +1183,7 @@ void main() {
testWidgets('Default cupertino dialog golden', (WidgetTester tester) async {
await tester.pumpWidget(
createAppWithButtonThatLaunchesDialog(
useMaterial3: false,
dialogBuilder: (BuildContext context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(textScaleFactor: 3.0),
......@@ -1523,8 +1524,10 @@ RenderBox findScrollableActionsSectionRenderBox(WidgetTester tester) {
Widget createAppWithButtonThatLaunchesDialog({
required WidgetBuilder dialogBuilder,
bool? useMaterial3,
}) {
return MaterialApp(
theme: ThemeData(useMaterial3: useMaterial3),
home: Material(
child: Center(
child: Builder(builder: (BuildContext context) {
......
......@@ -20,6 +20,7 @@ void main() {
await tester.pumpWidget(
MaterialApp(
theme: ThemeData(useMaterial3: false),
supportedLocales: const <Locale>[
Locale('en', 'US'),
Locale('ja'),
......@@ -64,6 +65,7 @@ void main() {
(WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
theme: ThemeData(useMaterial3: false),
supportedLocales: const <Locale>[
Locale('en', 'US'),
Locale('ja'),
......@@ -115,6 +117,7 @@ void main() {
(WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
theme: ThemeData(useMaterial3: false),
supportedLocales: const <Locale>[
Locale('en', 'US'),
Locale('ja'),
......
......@@ -16,6 +16,7 @@ void main() {
testWidgets("BackdropFilter's cull rect does not shrink", (WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
theme: ThemeData(useMaterial3: false),
home: Scaffold(
body: Stack(
fit: StackFit.expand,
......@@ -53,6 +54,7 @@ void main() {
testWidgets('BackdropFilter blendMode on saveLayer', (WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
theme: ThemeData(useMaterial3: false),
home: Scaffold(
body: Opacity(
opacity: 0.9,
......
......@@ -18,6 +18,7 @@ class TestPage extends StatelessWidget {
return MaterialApp(
title: 'Test',
theme: ThemeData(
useMaterial3: false,
primarySwatch: Colors.blue,
),
home: const HomePage(),
......
......@@ -5080,8 +5080,9 @@ void main() {
testWidgets('text selection style 1', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(
home: Material(
MaterialApp(
theme: ThemeData(useMaterial3: false),
home: const Material(
child: Center(
child: Column(
children: <Widget>[
......@@ -5132,8 +5133,9 @@ void main() {
testWidgets('text selection style 2', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(
home: Material(
MaterialApp(
theme: ThemeData(useMaterial3: false),
home: const Material(
child: Center(
child: Column(
children: <Widget>[
......
......@@ -788,97 +788,100 @@ void main() {
testWidgets('Text Inline widget baseline', (WidgetTester tester) async {
await tester.pumpWidget(
Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
Theme(
data: ThemeData(useMaterial3: false),
child: Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
),
),
),
),
),
),
),
),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
),
textDirection: TextDirection.ltr,
),
textDirection: TextDirection.ltr,
),
),
),
......@@ -895,97 +898,100 @@ void main() {
testWidgets('Text Inline widget aboveBaseline', (WidgetTester tester) async {
await tester.pumpWidget(
Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
Theme(
data: ThemeData(useMaterial3: false),
child: Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
),
),
),
),
),
),
),
),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
),
textDirection: TextDirection.ltr,
),
textDirection: TextDirection.ltr,
),
),
),
......@@ -1002,97 +1008,100 @@ void main() {
testWidgets('Text Inline widget belowBaseline', (WidgetTester tester) async {
await tester.pumpWidget(
Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
Theme(
data: ThemeData(useMaterial3: false),
child: Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
),
),
),
),
),
),
),
),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
),
textDirection: TextDirection.ltr,
),
textDirection: TextDirection.ltr,
),
),
),
......@@ -1109,97 +1118,100 @@ void main() {
testWidgets('Text Inline widget top', (WidgetTester tester) async {
await tester.pumpWidget(
Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
Theme(
data: ThemeData(useMaterial3: false),
child: Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
),
),
),
),
),
),
),
),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
),
textDirection: TextDirection.ltr,
),
textDirection: TextDirection.ltr,
),
),
),
......@@ -1216,97 +1228,100 @@ void main() {
testWidgets('Text Inline widget middle', (WidgetTester tester) async {
await tester.pumpWidget(
Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
Theme(
data: ThemeData(useMaterial3: false),
child: Center(
child: RepaintBoundary(
child: Material(
child: Directionality(
textDirection: TextDirection.ltr,
child: Container(
width: 400.0,
height: 200.0,
decoration: const BoxDecoration(
color: Color(0xff00ff00),
),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200, maxHeight: 100),
child: const Text.rich(
TextSpan(
text: 'C ',
style: TextStyle(
fontSize: 16,
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
children: <InlineSpan>[
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: true, onChanged: null),
),
WidgetSpan(
child: Checkbox(value: false, onChanged: null),
),
TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 50.0,
height: 55.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffffff00),
),
child: Center(
child:SizedBox(
width: 10.0,
height: 15.0,
child: DecoratedBox(
decoration: BoxDecoration(
color: Color(0xffff0000),
),
),
),
),
),
),
),
),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
TextSpan(text: 'hello world! seize the day!'),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Checkbox(value: false, onChanged: null),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: SizedBox(
width: 20,
height: 20,
child: Checkbox(value: true, onChanged: null),
),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic,
child: Text('embedded'),
),
TextSpan(text: 'ref'),
],
),
textDirection: TextDirection.ltr,
),
textDirection: TextDirection.ltr,
),
),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment