rrousselGit / functional_widget

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

Question #37

Closed NourEldinShobier closed 5 years ago

NourEldinShobier commented 5 years ago

Is it possible to use interfaces with fucntional widgets ?

rrousselGit commented 5 years ago

Hello!

Can you clarify? I don't understand how that would work.

NourEldinShobier commented 5 years ago

I'm really sorry, i meant interfaces example:

class CustomAppBar extends StatelessWidget implements PreferredSizeWidget{
}
rrousselGit commented 5 years ago

That's not possible no. A single function is not enough to handle such complex use-case.

NourEldinShobier commented 5 years ago

Thanks a lot.