Hello, does it not support the mobile phone to dynamically switch between horizontal and vertical screens?
The item position is out of order after the phone is horizontally screened.
dependencies:
scroll_snap_list: ^0.8.2
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.630], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[√] Connected device (4 available)
• No issues found!
MaterialApp(
title: 'Horizontal List Demo',
home: Scaffold(
appBar: AppBar(
title: Text("Horizontal List"),
),
body: ScrollSnapList(
onItemFocus: _onItemFocus,
itemSize: MediaQuery.of(context).size.width,
itemBuilder: (BuildContext context, int index) => Container(
color: Colors.orangeAccent,
child: Center(
child: Text("$index"),
),
height: 200,
width: MediaQuery.of(context).size.width,
),
itemCount: data.length,
),
),
)
Hello, does it not support the mobile phone to dynamically switch between horizontal and vertical screens?
The item position is out of order after the phone is horizontally screened.
dependencies:
scroll_snap_list: ^0.8.2
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.630], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[√] Connected device (4 available)
• No issues found!