parent
a3948cf540
commit
a1715ffc17
@ -0,0 +1,61 @@
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community/utils/headers.dart';
|
||||
|
||||
class CategoryPage extends StatefulWidget {
|
||||
CategoryPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_CategoryPageState createState() => _CategoryPageState();
|
||||
}
|
||||
|
||||
class _CategoryPageState extends State<CategoryPage> {
|
||||
int _index = 0;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '',
|
||||
bgColor: Colors.white,
|
||||
appBarBottom: PreferredSize(
|
||||
child: Divider(height: 1),
|
||||
preferredSize: Size.fromHeight(1),
|
||||
),
|
||||
body: Row(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 203.w,
|
||||
child: ListView.builder(
|
||||
itemBuilder: (context, index) {
|
||||
bool sameIndex = index == _index;
|
||||
return Stack(
|
||||
children: [
|
||||
MaterialButton(
|
||||
height: 100.w,
|
||||
minWidth: double.infinity,
|
||||
onPressed: () {
|
||||
_index = index;
|
||||
|
||||
setState(() {});
|
||||
},
|
||||
child: Text(
|
||||
'TEST',
|
||||
style: TextStyle(),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
itemCount: 10,
|
||||
),
|
||||
),
|
||||
VerticalDivider(
|
||||
color: Color(0xFFE8E8E8),
|
||||
width: 1,
|
||||
thickness: 1,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue