edit_builder 0.1.0 copy "edit_builder: ^0.1.0" to clipboard
edit_builder: ^0.1.0 copied to clipboard

discontinued

Simple package to help on creation of edit pages.

example/lib/main.dart

import 'package:edit_builder/edit_builder.dart';
import 'package:flutter/material.dart';

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

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'example',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('EditBuilder'),
      ),
      body: EditBuilder<String>(
        initialValue: 'C++',
        builder: (context, value, setValue) => Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              Text(value),
              FlatButton(
                child: Text('INCREASE'),
                onPressed: () => setValue(value += '+'),
              )
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Simple package to help on creation of edit pages.

Homepage
Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

flutter, flutter_bloc

More

Packages that depend on edit_builder