КА
Size: a a a
КА
Ю
КА
КА
КА
Container(
color: Color(0xFFf2f5fa),
height: 306,
width: MediaQuery.of(context).size.width,
child: ListView(
scrollDirection: Axis.horizontal,
children: [
Container(
height: 306,
width: MediaQuery.of(context).size.width,
child: ListView(
scrollDirection: Axis.vertical,
children: [
_table(),
],
),
)
],
),
)
КА
КА
bidirectionalScrollView
AT
bidirectionalScrollView
КА
КА
import 'package:bidirectional_scroll_view/bidirectional_scroll_view.dart';
import 'package:flutter/material.dart';
class SelectSeatPage extends StatefulWidget {
@override
_SelectSeatPageState createState() => _SelectSeatPageState();
}
class _SelectSeatPageState extends State<SelectSeatPage> {
Color color = Colors.red;
@override
Widget build(BuildContext context) {
// TODO: implement build
return Scaffold(
body: Column(
children: [_selectSeat(context)],
),
);
}
Widget _selectSeat(BuildContext context) {
return Container(
color: Color(0xFFf2f5fa),
height: 306,
width: MediaQuery.of(context).size.width,
child: BidirectionalScrollViewPlugin(
child: GestureDetector(
onTap: () {
setState(() {
if (color == Colors.red)
color = Colors.blue;
else
color = Colors.red;
});
},
child: Container(
color: color,
height: 206,
width: MediaQuery.of(context).size.width / 2,
),
),
));
}
}
КА
КА
AT
AT
AT
КА
КА
AT