eduwireapps / ynotes-packages Goto Github PK
View Code? Open in Web Editor NEWThe packages used in yNotes.
License: Apache License 2.0
The packages used in yNotes.
License: Apache License 2.0
Actuellement, components
importe directement les thèmes, ce qui empêche son utilisation en dehors de yNotes. Il faudrait donc passer les thèmes à la lib dans l'application.
Je suppose que le mieux c'est de passer les thèmes dans le main avec une fonction d'initialisation genre:
void main() {
final List<YTheme> themes = [systemTheme, lightTheme, darkTheme];
components.init(themes)
}
Ça voudrait dire qu'on ne peut pas utiliser d'énumération (YAvailableTheme).
En sachant qu'il faut pouvoir accéder à theme
depuis le package ynotes_packages/theme.dart
et non pas l'application.
T'en penses quoi @Androz2091 ?
The theme README on the rework branch contains several typos that must be corrected.
Autosubmit (bool): should submit the form automatically when pressing Done on the last input's keyboard. That means on onSubmit will never be triggered.
Concerning its usage, it can be to make sure the user clicks on a button with a clear label. Other use case: on submit, disable the form while processing data (for example login).
Use the dialog currently used in the example.
Currently to refresh the widgets when a theme change, we use an empty setState in a tasteful widget. But this solution is more like a hack.
To fix that, the current theme class should extend ChangeNotifier to notify listeners when theme is updated.
So using the Provider package, we should wrap the MaterialApp with a Consumer. It must be added to YApp and also explained in the documentation for usage without that widget.
We must what are all the text styles needed.
Concerning the link
, it was supposed to be used with YButton but there are 2 solutions really:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.