Unverified Commit ec0b4300 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Add dart Fix for TextSelectionThemeData (#78897)

parent 3e7e0651
This diff is collapsed.
......@@ -194,4 +194,96 @@ void main() {
InputDecorationTheme(hasFloatingPlaceholder: false);
InputDecorationTheme();
inputDecorationTheme.hasFloatingPlaceholder;
// Changes made in https://github.com/flutter/flutter/pull/66482
ThemeData(textSelectionColor: Colors.red);
ThemeData(cursorColor: Colors.blue);
ThemeData(textSelectionHandleColor: Colors.yellow);
ThemeData(useTextSelectionTheme: false);
ThemeData(textSelectionColor: Colors.red, useTextSelectionTheme: false);
ThemeData(cursorColor: Colors.blue, useTextSelectionTheme: false);
ThemeData(textSelectionHandleColor: Colors.yellow, useTextSelectionTheme: false);
ThemeData(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
);
ThemeData(
textSelectionHandleColor: Colors.yellow,
cursorColor: Colors.blue,
);
ThemeData(
textSelectionColor: Colors.red,
textSelectionHandleColor: Colors.yellow,
);
ThemeData(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
useTextSelectionTheme: false,
);
ThemeData(
textSelectionHandleColor: Colors.yellow,
cursorColor: Colors.blue,
useTextSelectionTheme: true,
);
ThemeData(
textSelectionColor: Colors.red,
textSelectionHandleColor: Colors.yellow,
useTextSelectionTheme: false,
);
ThemeData(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
textSelectionHandleColor: Colors.yellow,
);
ThemeData(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
textSelectionHandleColor: Colors.yellow,
useTextSelectionTheme: false,
);
ThemeData.raw(textSelectionColor: Colors.red);
ThemeData.raw(cursorColor: Colors.blue);
ThemeData.raw(textSelectionHandleColor: Colors.yellow);
ThemeData.raw(useTextSelectionTheme: false);
ThemeData.raw(textSelectionColor: Colors.red, useTextSelectionTheme: false);
ThemeData.raw(cursorColor: Colors.blue, useTextSelectionTheme: false);
ThemeData.raw(textSelectionHandleColor: Colors.yellow, useTextSelectionTheme: false);
ThemeData.raw(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
);
ThemeData.raw(
textSelectionHandleColor: Colors.yellow,
cursorColor: Colors.blue,
);
ThemeData.raw(
textSelectionColor: Colors.red,
textSelectionHandleColor: Colors.yellow,
);
ThemeData.raw(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
useTextSelectionTheme: false,
);
ThemeData.raw(
textSelectionHandleColor: Colors.yellow,
cursorColor: Colors.blue,
useTextSelectionTheme: true,
);
ThemeData.raw(
textSelectionColor: Colors.red,
textSelectionHandleColor: Colors.yellow,
useTextSelectionTheme: false,
);
ThemeData.raw(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
textSelectionHandleColor: Colors.yellow,
);
ThemeData.raw(
textSelectionColor: Colors.red,
cursorColor: Colors.blue,
textSelectionHandleColor: Colors.yellow,
useTextSelectionTheme: false,
);
}
......@@ -194,4 +194,68 @@ void main() {
InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecorationTheme();
inputDecorationTheme.floatingLabelBehavior;
// Changes made in https://github.com/flutter/flutter/pull/66482
ThemeData(textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red));
ThemeData(textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue));
ThemeData(textSelectionTheme: TextSelectionThemeData(selectionHandleColor: Colors.yellow));
ThemeData();
ThemeData(textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red));
ThemeData(textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue));
ThemeData(textSelectionTheme: TextSelectionThemeData(selectionHandleColor: Colors.yellow));
ThemeData(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionHandleColor: Colors.yellow,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionHandleColor: Colors.yellow,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData.raw(textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red));
ThemeData.raw(textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue));
ThemeData.raw(textSelectionTheme: TextSelectionThemeData(selectionHandleColor: Colors.yellow));
ThemeData.raw();
ThemeData.raw(textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red));
ThemeData.raw(textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue));
ThemeData.raw(textSelectionTheme: TextSelectionThemeData(selectionHandleColor: Colors.yellow));
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionHandleColor: Colors.yellow,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionHandleColor: Colors.yellow,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
}
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