Skip to content

Conversation

@bwikbs
Copy link
Member

@bwikbs bwikbs commented Jul 20, 2021

This is a simple code cleanup to better adapt upstream.

@bbrto21
Copy link
Contributor

bbrto21 commented Jul 26, 2021

I'd appreciate if you could share the upstream commit you referenced.

@swift-kim
Copy link
Member

Did you just change the code order without actual changes?

I think you can split the code into a couple of files if they are from different files.

FYI) Here is the class hierarchy I analyzed before: #54 (review)

@bwikbs
Copy link
Member Author

bwikbs commented Aug 2, 2021

I'd appreciate if you could share the upstream commit you referenced.

Here is Information what you requested

  • 'packages/flutter/lib/src/rendering/platform_view.dart' github.com:flutter/flutter.git@02c026b03cd31dd3f867e5faeb7e104cce174c5f
  • github.com:flutter/plugins.git@036fb33ae18bd6a1d2af29302f2124132ca10768

@bwikbs
Copy link
Member Author

bwikbs commented Aug 2, 2021

Did you just change the code order without actual changes?

I think you can split the code into a couple of files if they are from different files.

FYI) Here is the class hierarchy I analyzed before: #54 (review)

I guess It's a good way. I will separate it with its original file.

bwikbs added 2 commits August 3, 2021 15:48
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
* webview_flutter_tizen.dart : webview part
* platform_view.dart : platform view part imported without modification
* platform_view_tizen.dart : custom platform view part

Signed-off-by: MuHong Byun <mh.byun@samsung.com>
@bwikbs bwikbs force-pushed the cleanup branch 2 times, most recently from 4feff0e to 89d52fd Compare August 3, 2021 07:09
@bwikbs
Copy link
Member Author

bwikbs commented Aug 3, 2021

I tried to divide by file.. but I thought it was too small, so I just divided the modified parts and the non-modified parts.

Signed-off-by: MuHong Byun <mh.byun@samsung.com>
Copy link
Member

@swift-kim swift-kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

part of 'webview_flutter_tizen.dart';

/// How an embedded platform view behave during hit tests.
enum PlatformViewHitTestBehavior {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PlatformViewHitTestBehavior enum is already public so I think you don't have to copy it from the framework.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Thanks!! 👍

Signed-off-by: MuHong Byun <mh.byun@samsung.com>
@bbrto21
Copy link
Contributor

bbrto21 commented Aug 5, 2021

one more things, how about moving implementation code into src dir
see : https://dart.dev/tools/pub/package-layout#implementation-files

@bwikbs
Copy link
Member Author

bwikbs commented Aug 5, 2021

@bbrto21 You're right! thanks!!! 👏

@bwikbs bwikbs merged commit 91781e9 into flutter-tizen:master Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants