~garritfra/FlutterFlux

adcf7c8bb0e6ac1c367ff1c2a5f60495157f821b — Garrit Franke 3 years ago 2ce906b
chore: remove boilerplate code
3 files changed, 101 insertions(+), 22 deletions(-)

M lib/main.dart
M pubspec.lock
M pubspec.yaml
M lib/main.dart => lib/main.dart +1 -22
@@ 27,14 27,6 @@ class MyHomePage extends StatefulWidget {
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(


@@ 44,22 36,9 @@ class _MyHomePageState extends State<MyHomePage> {
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
          children: <Widget>[],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}

M pubspec.lock => pubspec.lock +99 -0
@@ 57,6 57,20 @@ packages:
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.2.0-nullsafety.3"
  ffi:
    dependency: transitive
    description:
      name: ffi
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.1.3"
  file:
    dependency: transitive
    description:
      name: file
      url: "https://pub.dartlang.org"
    source: hosted
    version: "5.2.1"
  flutter:
    dependency: "direct main"
    description: flutter


@@ 67,6 81,20 @@ packages:
    description: flutter
    source: sdk
    version: "0.0.0"
  intl:
    dependency: transitive
    description:
      name: intl
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.16.1"
  localstorage:
    dependency: "direct main"
    description:
      name: localstorage
      url: "https://pub.dartlang.org"
    source: hosted
    version: "3.0.6+9"
  matcher:
    dependency: transitive
    description:


@@ 88,6 116,62 @@ packages:
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.8.0-nullsafety.3"
  path_provider:
    dependency: transitive
    description:
      name: path_provider
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.6.27"
  path_provider_linux:
    dependency: transitive
    description:
      name: path_provider_linux
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.0.1+2"
  path_provider_macos:
    dependency: transitive
    description:
      name: path_provider_macos
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.0.4+8"
  path_provider_platform_interface:
    dependency: transitive
    description:
      name: path_provider_platform_interface
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.0.4"
  path_provider_windows:
    dependency: transitive
    description:
      name: path_provider_windows
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.0.4+3"
  platform:
    dependency: transitive
    description:
      name: platform
      url: "https://pub.dartlang.org"
    source: hosted
    version: "3.0.0"
  plugin_platform_interface:
    dependency: transitive
    description:
      name: plugin_platform_interface
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.0.3"
  process:
    dependency: transitive
    description:
      name: process
      url: "https://pub.dartlang.org"
    source: hosted
    version: "3.0.13"
  sky_engine:
    dependency: transitive
    description: flutter


@@ 149,5 233,20 @@ packages:
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.1.0-nullsafety.5"
  win32:
    dependency: transitive
    description:
      name: win32
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.7.4+1"
  xdg_directories:
    dependency: transitive
    description:
      name: xdg_directories
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.1.2"
sdks:
  dart: ">=2.12.0-0.0 <3.0.0"
  flutter: ">=1.12.13+hotfix.5"

M pubspec.yaml => pubspec.yaml +1 -0
@@ 21,6 21,7 @@ environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  localstorage: ^3.0.6
  flutter:
    sdk: flutter