path_stack 0.2.0+1 copy "path_stack: ^0.2.0+1" to clipboard
path_stack: ^0.2.0+1 copied to clipboard

A Stack that shows a single child route from a map of child routes. Similar to IndexedStack, but it uses Strings as keys and has a number of extra features like child nesting and path arguments.

example/lib/main.dart

import 'package:example/advanced_tab_example.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:path_stack/path_stack.dart';
import 'full_api_example.dart';
import 'hello_world_example.dart';
import 'simple_tab_example.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  int _s = 0;
  int get myVar => _s;
  set myVar(int s) {
    _s = s;
  }

  @override
  Widget build(BuildContext context) {
    Map<int, int> m = {};
    String s = "s";
    print(m[s]);

    //return MaterialApp(home: Scaffold(body: HelloWorldExample()));
    //return MaterialApp(home: SimpleTabExample());
    //return MaterialApp(home: FullApiExample());
    return MaterialApp(home: Scaffold(body: AdvancedTabExample()));
  }
}
6
likes
110
pub points
3%
popularity

Publisher

unverified uploader

A Stack that shows a single child route from a map of child routes. Similar to IndexedStack, but it uses Strings as keys and has a number of extra features like child nesting and path arguments.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, path_to_regexp

More

Packages that depend on path_stack