@@ -9,6 +9,7 @@ import 'package:shared_preferences/shared_preferences.dart';
99import 'package:todo/services/contacts.dart' ;
1010import 'package:todo/services/phone.dart' ;
1111import 'package:todo/models/ussd_codes.dart' ;
12+ import 'package:getflutter/getflutter.dart' ;
1213
1314class UssdRootWidget extends StatefulWidget {
1415 _UssdRootState createState () => _UssdRootState ();
@@ -136,8 +137,15 @@ class UssdCategoryWidget extends StatelessWidget {
136137 );
137138 },
138139 child: Column (children: < Widget > [
139- ListTile (
140- leading: Icon (category.icon, color: Theme .of (context).focusColor),
140+ GFListTile (
141+ margin: EdgeInsets .all (3 ),
142+ avatar: Icon (category.icon, color: Theme .of (context).focusColor),
143+ description: Text (
144+ category.description,
145+ style: TextStyle (
146+ color: Theme .of (context).focusColor,
147+ ),
148+ ),
141149 title: Text (
142150 category.name.toUpperCase (),
143151 ),
@@ -239,6 +247,7 @@ class UssdWidget extends StatelessWidget {
239247 code: ussdCode.code,
240248 name: ussdCode.name,
241249 icon: ussdCode.icon,
250+ description: ussdCode.description,
242251 );
243252 }
244253
@@ -249,9 +258,10 @@ class UssdWidget extends StatelessWidget {
249258class SimpleCode extends StatelessWidget {
250259 final String code;
251260 final String name;
261+ final String description;
252262 final IconData icon;
253263
254- SimpleCode ({this .code, this .name, this .icon});
264+ SimpleCode ({this .code, this .name, this .icon, this .description });
255265
256266 @override
257267 Widget build (BuildContext context) {
@@ -260,8 +270,15 @@ class SimpleCode extends StatelessWidget {
260270 callTo (code);
261271 },
262272 child: Column (children: < Widget > [
263- ListTile (
264- leading: Icon (icon, color: Theme .of (context).focusColor),
273+ GFListTile (
274+ margin: EdgeInsets .all (3 ),
275+ avatar: Icon (icon, color: Theme .of (context).focusColor),
276+ description: Text (
277+ description,
278+ style: TextStyle (
279+ color: Theme .of (context).focusColor,
280+ ),
281+ ),
265282 title: Text (
266283 name.toUpperCase (),
267284 ),
@@ -293,8 +310,15 @@ class CodeWithForm extends StatelessWidget {
293310 );
294311 },
295312 child: Column (children: < Widget > [
296- ListTile (
297- leading: Icon (code.icon, color: Theme .of (context).focusColor),
313+ GFListTile (
314+ margin: EdgeInsets .all (3 ),
315+ avatar: Icon (code.icon, color: Theme .of (context).focusColor),
316+ description: Text (
317+ code.description,
318+ style: TextStyle (
319+ color: Theme .of (context).focusColor,
320+ ),
321+ ),
298322 title: Text (code.name.toUpperCase ()),
299323 ),
300324 Divider (
0 commit comments