1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| import 'package:flutter/material.dart';
class MyCategory {
String title;
String subtitle;
Color color;
String key;
MyCategory(
this.title,
this.subtitle,
this.color,
this.key,
);
}
class Settings extends StatefulWidget {
@override
_SettingsState createState() => _SettingsState();
}
class _SettingsState extends State<Settings> {
List<MyCategory> cateList;
final SlidableController slidableController = SlidableController();
@override
void initState() {
super.initState();
cateList = [
MyCategory('List 1', "Here is list 1 subtitle",Color(0xffe64571),'1'),
MyCategory('List 2', "Here is list 2 subtitle",Color(0xffedc549),'2'),
MyCategory('List 3', "Here is list 3 subtitle",Color(0xffccb485),'3'),
MyCategory('List 4', "Here is list 4 subtitle",Color(0xffa59f49),'4'),
MyCategory('List 5', "Here is list 5 subtitle",Color(0xffc5763a),'5'),
];
}
|