flutter_essentials 0.0.5
flutter_essentials: ^0.0.5

Flutter Android iOS

Essential cross platform APIs for your mobile\desktop\web apps.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_essentials_example/accelerometer_page.dart';
import 'package:flutter_essentials_example/app_info_page.dart';
import 'package:flutter_essentials_example/preferences_page.dart';
import 'package:flutter_essentials_example/version_tracking_page.dart';
import 'package:flutter_essentials/version_tracking.dart';
import 'package:flutter_essentials_example/phone_dialer_page.dart';
import 'device_info_page.dart';

void main() async {
  runApp(MaterialApp(
    title: 'Home',
    home: HomePage(),
  ));
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    VersionTracking.init();
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            RaisedButton(
              child: Text("App Info"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => new AppInfoPage()),
                );
              },
            ),
            RaisedButton(
              child: Text("Preferences"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => new PreferencesPage()),
                );
              },
            ),
            RaisedButton(
              child: Text("Version Tracking"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => new VersionTrackingPage()),
                );
              },
            ),
            RaisedButton(
              child: Text("Device Info"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => new DeviceInfoPage()),
                );
              },
            ),
            RaisedButton(
              child: Text("Phone Dialer"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => new PhoneDialerPage()),
                );
              },
            ),
            RaisedButton(
              child: Text("Accelerometer"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => new AccelerometerPage()),
                );
              },
            )
          ],
        ),
      ),
    );
  }
}
0
likes
80
pub points
37%
popularity

Essential cross platform APIs for your mobile\desktop\web apps.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

acastr7@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_essentials