flutter_view_tools 1.0.4 copy "flutter_view_tools: ^1.0.4" to clipboard
flutter_view_tools: ^1.0.4 copied to clipboard

outdated

Flutter Dart tools library for flutter-view. These tools allow some extra functionality for flutter-view, and are highly recommended for your flutter-view projects. Flutter-view is a tool that lets yo [...]

example/lib/main.dart

import 'package:example/example-page.dart';
import 'package:example/example-model.dart';
import 'package:flutter/material.dart';

void main() => runApp(ExampleApp());

class ExampleApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _ExampleAppState();
}

class _ExampleAppState extends State<ExampleApp> {

  /// The state of the app. Because it extends [Model], it can inform the [ReactiveWidget]
  /// in the [ExamplePage] that it has updated, causing a rerender of the child of the [ReactiveWidget]
  ExampleModel model;

  @override
    void initState() {
      /// Create the app state
      model = ExampleModel();
      super.initState();
    }

  @override
  Widget build(BuildContext context) => MaterialApp(
    title: 'Example',
    /// Render the homepage by callig the [ExamplePage] method, passing in the model
    home: ExamplePage(model: model),
  );

}
0
likes
25
pub points
39%
popularity

Publisher

unverified uploader

Flutter Dart tools library for flutter-view. These tools allow some extra functionality for flutter-view, and are highly recommended for your flutter-view projects. Flutter-view is a tool that lets you easily create layouts for Flutter, using Pug and Sass. http://flutter-view.io

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, scoped_model

More

Packages that depend on flutter_view_tools