flutter_showtime 0.1.1
flutter_showtime: ^0.1.1 copied to clipboard

A flutter wrapper around the ShowTime Cocoapod to visually highlight touch events in iOS with hot spots.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter_showtime/flutter_showtime.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  var showtimeEnabled = false;

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('flutter_showtime'),
          ),
          body: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Spacer(),
              Center(
                child: RaisedButton(
                  onPressed: () async {
                    if (showtimeEnabled) {
                      await FlutterShowtime.disable();
                      setState(() => showtimeEnabled = false);
                    } else {
                      await FlutterShowtime.enable();
                      setState(() => showtimeEnabled = true);
                    }
                  },
                  child: Text('ShowTime Enabled: $showtimeEnabled'),
                ),
              ),
              Spacer(),
            ],
          )),
    );
  }
}
1
likes
90
pub points
41%
popularity

Publisher

bottlepay.com

A flutter wrapper around the ShowTime Cocoapod to visually highlight touch events in iOS with hot spots.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_showtime