30 lines
785 B
Dart
30 lines
785 B
Dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
class DrawerPage extends StatelessWidget {
|
|
const DrawerPage({ Key? key }) : super(key: key);
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Drawer(
|
|
// Add a ListView to the drawer. This ensures the user can scroll
|
|
// through the options in the drawer if there isn't enough vertical
|
|
// space to fit everything.
|
|
child: ListView.builder(
|
|
itemCount: 10,
|
|
itemBuilder: (context, i){
|
|
return Obx(() =>
|
|
CheckboxListTile(
|
|
value: true,
|
|
title: Text("Title"),
|
|
onChanged: (val){
|
|
}
|
|
),
|
|
);
|
|
},
|
|
)
|
|
);
|
|
}
|
|
} |