Giter Site home page Giter Site logo

eduwireapps / ynotes-packages Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 774 KB

The packages used in yNotes.

License: Apache License 2.0

Kotlin 0.12% Swift 0.19% Objective-C 0.02% Dart 77.67% HTML 1.75% CMake 7.44% C++ 11.50% C 0.67% Ruby 0.64%
flutter ynotes

ynotes-packages's People

Contributors

florian-lefebvre avatar jsonlinescode avatar modernchocolate avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ynotes-packages's Issues

Ne pas importer les thèmes dans components

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 ?

Fix typos

The theme README on the rework branch contains several typos that must be corrected.

Rework: YForm: add parameter autosubmit

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 ChangeNotifier to update the widget tree

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.

Rework the texts

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:

  • add a YButtonVariant
  • add a new component (I prefer this approach but we must see)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.