-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
🎨 UI improvements #119
🎨 UI improvements #119
Conversation
@@ -775,7 +775,7 @@ class DefaultAssetPickerBuilderDelegate | |||
child: Text( | |||
provider.isSelectedNotEmpty && !isSingleAssetMode | |||
? '${Constants.textDelegate.confirm}' | |||
'(${provider.selectedAssets.length}/${provider.maxAssets})' | |||
' (${provider.selectedAssets.length}/${provider.maxAssets})' |
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.
This space is required to make sure the parenthesis are not too close to the text
I personally don't agree with the default "Folder" implementation, since we followed the UI with the WeChat. Meanwhile you can implement the "Folder" part by extend your own delegate. So I think that part can be moved to a custom implementation. Then we can push other parts forward later. |
How about adding a parameter for UI falvor, or even using the SpecialPickerType for that, so we can have one flavor for WeChat and another flavor for MegaTok? |
Sorry but it doesn't sounds good to me. At least you should implement a custom delegate and give it a shot. |
Beside of this, other enhancements seems kind of valid on some point. |
Ok, I will try with the custom delegate and update. |
(Tips: Extends |
@AlexV525 I'm trying to go in that direction. To achieve that I need to add a new parameters to the |
No. Make your own delegate based on |
I'm closing this since the main idea of this PR has been rejected. File new PRs if you have any other thoughts. |
Ok, I will create a new PR with the support for RTL languages, and one with support for Megatok pattern. |
I'm having trouble with that, can you please take a look at the changes? (When running the code and clicking on Megatok example, nothing is presented) |
Is the problem still exist? |
I managed to solve it, but I need quite a lot of code duplication in order to add new text to the
|
What's the intention that you need a new text in the text delegate? |
Why it needs to follow languages? It's a custom implementation for the MegaTok app as you mentioned before. |
I will try to explain. The way I see it there are two alternatives:
I prefer the 2nd option, since this way I can benifit from any work done on the official plugin without maintenance (merge upstream changes etc.), and the official plugin can also benefit from my updates (pushing more ideas into PRs). |
I'll take a look with your branch if I got more time, before that I'm curious about your question:
|
|
In order to make your review easier, I have created a new branch with relevant changes on the lastest version: |
How can it be possible? Sorry I don't understand their relations here. I thought your app would be a fixed language, and change languages using inner setting with provided languages. Then you can use the i18n in your widget. |
So I've checked your branch, and make some changes with comments. The |
Thanks, I will review the changes. |
In 5.4.1 it's been exported as |
fei chang gan xie! |
If I'm using my own localization infrastructure in the |
After removing, it look much more reasonable. |
Sure. But I have to reorder the structure of the example, which will allow more custom delegates contributed if more people want to. |
Great 👍 |
Thanks! |
Sorry for the multiple pull-requests (I'm trying to push the wechat assets picker to be integrated into MegaTok's next official version...)
This PR has the following improvements:
Some "after" screenshots:
Chinese app bar before selection:
![image](https://user-images.githubusercontent.com/13107481/116873234-ff2c7780-ac1f-11eb-9fbd-782173c102c4.png)
Chinese app bar after selection:
![image](https://user-images.githubusercontent.com/13107481/116873323-25eaae00-ac20-11eb-98de-d54e84a8b5e3.png)
Hebrew app bar before selection:
![image](https://user-images.githubusercontent.com/13107481/116873402-4dda1180-ac20-11eb-9c8c-8bbf477442fa.png)
Hebrew app bar after selection:
![image](https://user-images.githubusercontent.com/13107481/116873450-60ece180-ac20-11eb-9598-687913ff3ac2.png)