Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(662)

Unified Diff: sky/sdk/lib/widgets/checkbox.dart

Issue 1226113007: Add @override annotation to known overriden methods (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/widgets/card.dart ('k') | sky/sdk/lib/widgets/default_text_style.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/checkbox.dart
diff --git a/sky/sdk/lib/widgets/checkbox.dart b/sky/sdk/lib/widgets/checkbox.dart
index f52cafa23bcc82743a5a8e0b86b9552c3c0ba559..483f070d3adb15703346c747cb09961f62964a36 100644
--- a/sky/sdk/lib/widgets/checkbox.dart
+++ b/sky/sdk/lib/widgets/checkbox.dart
@@ -37,8 +37,10 @@ class Checkbox extends Toggleable {
ValueChanged onChanged
}) : super(key: key, value: value, onChanged: onChanged);
+ @override
Size get size => const Size(_kEdgeSize + 2.0, _kEdgeSize + 2.0);
+ @override
void customPaintCallback(sky.Canvas canvas, Size size) {
ThemeData themeData = Theme.of(this);
Color uncheckedColor = themeData.brightness == ThemeBrightness.light ? _kLightUncheckedColor : _kDarkUncheckedColor;
« no previous file with comments | « sky/sdk/lib/widgets/card.dart ('k') | sky/sdk/lib/widgets/default_text_style.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698