import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: MyWidget(),
),
);
}
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ListWheelScrollView(
offAxisFraction: 0,
diameterRatio: 1.4,
itemExtent: 200,
children: [
for (var i in List.generate(10, (i) => i))
Container(
width: 300,
height: 200,
color: Colors.orange[200],
child: Center(
child: Text(
"メニュー: $i",
style: const TextStyle(fontSize: 30),
),
),
),
],
),
),
);
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.