flutter_showtime 0.1.1 copy "flutter_showtime: ^0.1.1" to clipboard
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
40
pub points
0%
popularity

Publisher

verified publisherbottlepay.com

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_showtime