v2.0.0touch_indicator
화면을 터치한 위치에 최대 5개의 터치 인디케이터를 표시합니다. 청중에게 데모를 보여줄 때나 앱을 녹화할 때 유용합니다.
스크린 캐스트 또는 비디오 녹화 중에 iOS 및 Android에서 일관된 터치 표시기를 표시하는 Flutter 플러그인
{"sdk":"flutter"}{"sdk":"flutter"}^1.4.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
When you are recording a screencast of your app, you often want to give visual indication of where your fingers are touching the screen. Showing that on Android is easy. On iOS it's less intuitive. touch_indicator makes it easier and consistent on both platforms.
You add this widget as the main widget where you want to display user touches. Usually this will be the direct child of your MaterialApp. It will show an indicator on every touching finger and is completely customizable.
https://raw.githubusercontent.com/mardaneus86/touch_indicator/master/screenshots/touch_indicator_example.gif
Add the plugin to your pubspec.yaml:
dependencies:
touch_indicator: ^2.0.0
Import the package in your Dart code:
import 'package:touch_indicator/touch_indicator.dart';
Wrap all routes in your app in the TouchIndicator widget:
class MyApp extends StatelessWidget {
MaterialApp(
title: 'Touch indicator example',
builder: (context, child) => TouchIndicator(child: child!),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
Changes the color of the backdrop and icon. Default is Colors.blueGrey.
Changes the size of the indicator. Default is 40.0.
By adding a Widget here, you can change the complete look of the touch indicators. Make sure to supply a proper indicatorSize in order for the indicators to be positioned at the center of your touchpoints.
When you want to show indicators when the app is running in release mode, make sure to enable this option. Default is false.
You can enable or disable display of the indicators on the fly with this option. Default is true.