Skip to content
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

Some customizations #4

Closed
wants to merge 9 commits into from

Conversation

alejandrogiubel
Copy link
Contributor

Added some customizations parameters.

@@ -28,6 +28,11 @@ class _BaseFormField<T> extends StatefulWidget {
final FocusNode? focusNode;
final bool expands;
final Function(FormFieldState<T> field) onRemove;
final Icon locationIcon;
Copy link
Owner

Choose a reason for hiding this comment

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

create a class holds the new properties MapViewConfig
and add these new props in OpenMapSettings so that it can be configured globally

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that properties that refer to the map style should not go in the global configuration, because it is possible that you want to have two maps with different styles in the same app

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think would be a good idea encapsulating everything in a map style class (something like MapViewConfig). This would give the possibility of having multiple styles.

Copy link
Owner

Choose a reason for hiding this comment

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

you can use OpenMapSettings multiple times the package inherit from the nearest one in the widget tree

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case it's ok.

@@ -119,6 +129,7 @@ class __BaseFormFieldState<T> extends State<_BaseFormField<T>> {
: effectiveDecoration.suffixIcon);

return InkWell(
borderRadius: widget.borderRadius,
Copy link
Owner

Choose a reason for hiding this comment

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

if this for clipping may be use ClipPath is best fit as the input border may not be totally round or has a custom shape

ClipPath(
      clipper: ShapeBorderClipper(effectiveDecoration.border),
    );

@@ -130,7 +134,7 @@ class _MapAppBarState extends State<MapAppBar> {

return AppBar(
leading: state.mapOrNull(
searching: (_) => const Center(child: CupertinoActivityIndicator()),
searching: (_) => const Center(child: CircularProgressIndicator.adaptive()),
Copy link
Owner

Choose a reason for hiding this comment

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

making this customizable will be good

@mo-ah-dawood
Copy link
Owner

I'm waiting for you to make your changes if you can't let me know to merge

@alejandrogiubel
Copy link
Contributor Author

I'm waiting for you to make your changes if you can't let me know to merge

I'm sorry I've been very busy these days and I haven't had time. As soon as I have a chance I'll do another PR

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.

None yet

2 participants