osam_flutter 2.2.2 copy "osam_flutter: ^2.2.2" to clipboard
osam_flutter: ^2.2.2 copied to clipboard

discontinued
outdated

Navigation and UI elements which fits with Osam library

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:osam_flutter/osam_flutter.dart';

final navKey = GlobalKey<NavigatorState>();

void main() async {
  final core = Core();
  runApp(MaterialApp(
    navigatorKey: navKey,
    home: App(core),
  ));
}

class App extends StatefulWidget {
  final Core core;

  const App(this.core);

  @override
  _AppState createState() => _AppState();
}

class _AppState extends State<App> {
  @override
  Widget build(BuildContext context) {
    return OsamNavigator(
      log: true,
      key: navKey,
      routes: {
        '1'
      },

    );
  }
}

class Core extends BaseState<Core> {
  var num = 0;
  var news = <News>[];

  @override
  List<Object> get props => [news, num];
}

class News extends BaseState<News> {
  bool isFavorite = false;
  final id;

  News(this.id);

  @override
  List<Object> get props => [isFavorite, id];
}
2
likes
0
pub points
0%
popularity

Publisher

verified publisherrenesanse.net

Navigation and UI elements which fits with Osam library

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

after_layout, flutter, osam, provider

More

Packages that depend on osam_flutter