Skip to content

ErselCakmak/fellow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fellow

This project was created for extension uses.

Context Extensions

Navigator Extension

These directly access navigation features.

Column(
  children: [
    ElevatedButton(
      onPressed: () {
        context.pop();
      },
      child: Text('Navigation Pop'),
    ),
    ElevatedButton(
      onPressed: () {
        context.navToName('/page1');
      },
      child: Text('Navigation Named'),
    ),
    ElevatedButton(
      onPressed: () async {
        final response = await context.navToPage(Widget(), type: SlideType.TOP);
        if (response == true) {
          // ...
        }
      },
      child: Text('Navigation to Widget'),
    ),
    ElevatedButton(
      onPressed: () {
        context.navAndRemove(Widget(), type: SlideType.RIGHT);
      },
      child: Text('Navigation to Widget and Remove Back'),
    ),
  ],
);
Duration Extension

These extensions mainly for animation use.

AnimatedOpacity(
  duration: context.durationLow,
  child: Text('${context.durationLow}'),
);
Widget Extension

Visible/Disable widget. Easy to use.

Text("Hello").toVisible(true);
Text("Hello").toDisabled(true);

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages