File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
patterns/adapter/flutter_adapter Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'package:flutter/gestures.dart';
22import 'package:flutter/rendering.dart' ;
33
44import '../classic_app/classic_app.dart' ;
5- import '../classic_app/classic_app_events .dart' ;
5+ import '../classic_app/repaint_event .dart' ;
66
77class ClassicAppRenderObject extends RenderBox {
88 ClassicAppRenderObject (ClassicApp classicApp) {
@@ -58,7 +58,7 @@ class ClassicAppRenderObject extends RenderBox {
5858 _isSubscribe = true ;
5959 }
6060
61- void _clientAppRepaint (ClassicAppRepaint e) => markNeedsPaint ();
61+ void _clientAppRepaint (RepaintEvent e) => markNeedsPaint ();
6262
6363 @override
6464 void handleEvent (PointerEvent event, covariant BoxHitTestEntry entry) {
Original file line number Diff line number Diff line change 11import 'dart:ui' ;
22
33import '../../../observer/app_observer/observer/app_observer.dart' ;
4- import 'classic_app_events .dart' ;
4+ import 'repaint_event .dart' ;
55import 'repaint_compatible.dart' ;
66
77abstract class ClassicApp implements RepaintCompatible {
@@ -13,7 +13,7 @@ abstract class ClassicApp implements RepaintCompatible {
1313
1414 @override
1515 void repaint () {
16- events.notify (ClassicAppRepaint ());
16+ events.notify (RepaintEvent ());
1717 }
1818
1919 void onPaint (Canvas canvas, Size canvasSize);
Original file line number Diff line number Diff line change 11import '../../../observer/app_observer/observer/event.dart' ;
22
3- class ClassicAppRepaint extends Event {}
3+ class RepaintEvent extends Event {}
Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
22
33import '../../../../observer/subscriber_flutter_widget/subscriber/subscriber_widget.dart' ;
4- import '../../classic_app/classic_app_events .dart' ;
4+ import '../../classic_app/repaint_event .dart' ;
55import '../app.dart' ;
66import 'color_buttons_widget.dart' ;
77import 'slider_widget.dart' ;
@@ -17,7 +17,7 @@ class TextPropertyWidget extends StatelessWidget {
1717 @override
1818 Widget build (BuildContext context) {
1919 final app = classicApp;
20- return SubscriberWidget <ClassicAppRepaint >(
20+ return SubscriberWidget <RepaintEvent >(
2121 observer: app.events,
2222 builder: (context, event) {
2323 return Container (
You can’t perform that action at this time.
0 commit comments