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

discontinuedreplaced by: apptive_grid_core
outdated

Core Library for ActiveGrid used to provide general ActiveGrid functionality to other Packages or Apps

example/lib/main.dart

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

// ignore_for_file: public_member_api_docs

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: ActiveGrid(
        options: ActiveGridOptions(
          environment: ActiveGridEnvironment.alpha,
        ),
        child: MyHomePage(title: 'Flutter Demo Home Page'),
      ),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

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

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

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      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,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}
7
likes
0
pub points
0%
popularity

Publisher

verified publisherzweidenker.de

Core Library for ActiveGrid used to provide general ActiveGrid functionality to other Packages or Apps

Homepage

License

unknown (LICENSE)

Dependencies

flutter, http, intl, openid_client, provider, url_launcher

More

Packages that depend on active_grid_core