@@ -229,53 +229,53 @@ class _HomeListState extends State<HomeList> {
229229 _SessionWidget (session: sessions[allKeys[index]]! ),
230230 ),
231231 ListView .builder (
232- itemCount: INNER_SERVICES .length,
232+ itemCount: HOME_DIRECTORY .length,
233233 itemBuilder: (BuildContext ctx, int index) {
234- final params = INNER_SERVICES [index].params (lang);
234+ final params = HOME_DIRECTORY [index].params (lang);
235235 return ListTile (
236- leading: Container (
237- width: 40.0 ,
238- height: 40.0 ,
239- padding: const EdgeInsets .all (6.0 ),
240- decoration: BoxDecoration (
241- borderRadius: BorderRadius .circular (10.0 ),
242- ),
243- child: Image .asset (params[2 ]),
244- ),
245- title: Text (params[0 ], style: TextStyle (fontSize: 16.0 )),
246- subtitle: Text (params[1 ], style: TextStyle (fontSize: 12.0 )),
236+ leading: Icon (params[0 ], color: Color (0xFF6174FF )),
237+ title: Text (params[1 ], style: TextStyle (fontSize: 16.0 )),
247238 trailing: Icon (Icons .keyboard_arrow_right),
248239 onTap: () {
249- final widget = INNER_SERVICES [index]. callback ( );
240+ final widget = FilesList (path : params[ 2 ] );
250241 if (widget != null ) {
251242 if (isDesktop) {
252243 Provider .of <AccountProvider >(context, listen: false ).updateActivedWidget (widget);
253244 } else {
254245 Navigator .push (context, MaterialPageRoute (builder: (_) => widget));
255246 }
256247 }
257- },
248+ }
258249 );
259250 }
260251 ),
261252 ListView .builder (
262- itemCount: HOME_DIRECTORY .length,
253+ itemCount: INNER_SERVICES .length,
263254 itemBuilder: (BuildContext ctx, int index) {
264- final params = HOME_DIRECTORY [index].params (lang);
255+ final params = INNER_SERVICES [index].params (lang);
265256 return ListTile (
266- leading: Icon (params[0 ], color: Color (0xFF6174FF )),
267- title: Text (params[1 ], style: TextStyle (fontSize: 16.0 )),
257+ leading: Container (
258+ width: 40.0 ,
259+ height: 40.0 ,
260+ padding: const EdgeInsets .all (6.0 ),
261+ decoration: BoxDecoration (
262+ borderRadius: BorderRadius .circular (10.0 ),
263+ ),
264+ child: Image .asset (params[2 ]),
265+ ),
266+ title: Text (params[0 ], style: TextStyle (fontSize: 16.0 )),
267+ subtitle: Text (params[1 ], style: TextStyle (fontSize: 12.0 )),
268268 trailing: Icon (Icons .keyboard_arrow_right),
269269 onTap: () {
270- final widget = FilesList (path : params[ 2 ] );
270+ final widget = INNER_SERVICES [index]. callback ( );
271271 if (widget != null ) {
272272 if (isDesktop) {
273273 Provider .of <AccountProvider >(context, listen: false ).updateActivedWidget (widget);
274274 } else {
275275 Navigator .push (context, MaterialPageRoute (builder: (_) => widget));
276276 }
277277 }
278- }
278+ },
279279 );
280280 }
281281 ),
@@ -300,14 +300,14 @@ class _HomeListState extends State<HomeList> {
300300 inactiveColor: Colors .grey,
301301 ),
302302 BottomNavyBarItem (
303- icon: Icon (Icons .apps ),
304- title: Text (lang.services , style: TextStyle (fontSize: 15.0 )),
303+ icon: Icon (Icons .source ),
304+ title: Text (lang.dataCenter , style: TextStyle (fontSize: 15.0 )),
305305 activeColor: Color (0xFF6174FF ),
306306 inactiveColor: Colors .grey,
307307 ),
308308 BottomNavyBarItem (
309- icon: Icon (Icons .source ),
310- title: Text (lang.dataCenter , style: TextStyle (fontSize: 15.0 )),
309+ icon: Icon (Icons .apps ),
310+ title: Text (lang.services , style: TextStyle (fontSize: 15.0 )),
311311 activeColor: Color (0xFF6174FF ),
312312 inactiveColor: Colors .grey,
313313 ),
0 commit comments