rrousselGit / functional_widget

A code generator to write widgets as function without loosing the benefits of classes.
596 stars 46 forks source link

How to make a widget extend a specific class #120

Closed DjamelAbbou closed 10 months ago

DjamelAbbou commented 10 months ago

I currently am using hooks_riverpod and functional_widget packages on my project and i was wondering how can i make a functional widget function extend a specific class, for example suppose the following non-functional flutter code:

class Counter extends StateNotifier<int?> {
  //...more code
}

how would i make a functional widget function extend the statenotifier class or any other class i would like ?

rrousselGit commented 10 months ago

There's no support for extending custom classes at the moment, especially non-widget ones.

I have no plan to support that at the moment