-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: auto mask in Flutter #555
base: feat/user-step
Are you sure you want to change the base?
Conversation
packages/instabug_flutter/android/src/main/java/com/instabug/flutter/modules/InstabugApi.java
Outdated
Show resolved
Hide resolved
...instabug_flutter/android/src/main/java/com/instabug/flutter/modules/InstabugPrivateView.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmedAlaaInstabug Awesome work! 🚀 and great effort 👏🏻👏🏻
|
||
// Add the new step to the list | ||
_steps.add(route); | ||
Future<dynamic>.delayed(const Duration(milliseconds: 1000), () { | ||
// If this route is in the array, report it and remove it from the list | ||
if (_steps.contains(route)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmedAlaaInstabug Won't the condition _steps.contains(route)
always evaluate to true since _steps.add(route)
is executed beforehand?
bool light = true; | ||
double _scale = 1.0; // Initial scale of the image | ||
|
||
TextEditingController _controller2 = TextEditingController(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rename and dispose of this controller?
) | ||
: const Center(child: CircularProgressIndicator()), | ||
), | ||
const SizedBox(height: 24), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need these multiple SizedBox
widgets ?
return renderObject.paintBounds.shift(globalOffset); | ||
} | ||
|
||
// The is the same implementation used in RenderBox.localToGlobal (a subclass of RenderObject) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmedAlaaInstabug Could you mark this class as @internal
and adjust its methods to either private
or @internal
, depending on their calling scope, since it involves highly sensitive logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to locate unit tests for PrivateViewsManager.I.addAutoMasking
and InstabugWidget
.
Description of the change
feat: enhance private views
Type of change
Related issues
Jira iD : MOB-17833
Checklists
Development
Code review