Closed
Description
I'm using flutter pi on a raspberry pi official touchscreen. However, when you touch the screen whenever a different finger is pressing a widget, the widget will never be released any more. This is tested on a slider and a card, but on both widgets the issue exists.
Flutter version 1.17.3
Flutter-pi version: latest commit on master 94f38d3
Flutter-pi engine: latest on engine binaries branch dcf0d22
To reproduce:
- Flutter create test_app
- Replace homepage build method with this code:
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Slider(
value: _sliderValue,
min: 0.0,
max: 1.0,
activeColor: Colors.red,
inactiveColor: Colors.black,
onChanged: (double newValue) {
setState(() => _sliderValue = newValue);
},
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
- Build and run the application
- With one finger, press the slider and move it for a bit (a dark red shadow will appear around the slider)
- While still pressing the slider, touch the screen with a second finger.
- Release both fingers.
- The shadow will still be shown around the slider, indicating it is still pressed.
With a Card this issue is a bigger problem, because i cannot recognise a new touch after the problem arises.