@@ -20,21 +20,21 @@ import 'package:tdesign_flutter/tdesign_flutter.dart';
2020
2121const utf8encoder = Utf8Encoder ();
2222
23- class FindmDNSClientListPage extends StatefulWidget {
24- const FindmDNSClientListPage ({Key ? key}) : super (key: key);
23+ class FindGatewayGoListPage extends StatefulWidget {
24+ const FindGatewayGoListPage ({Key ? key}) : super (key: key);
2525
2626 @override
27- State createState () => _FindmDNSClientListPageState ();
27+ State createState () => _FindGatewayGoListPageState ();
2828}
2929
30- class _FindmDNSClientListPageState extends State <FindmDNSClientListPage > {
30+ class _FindGatewayGoListPageState extends State <FindGatewayGoListPage > {
3131 BonsoirDiscovery ? action;
3232 final Map <String , PortService > _ServiceMap = {};
3333 // final flutterNsd = FlutterNsd();
3434 bool initialStart = true ;
3535 bool _scanning = false ;
3636
37- _FindmDNSClientListPageState ();
37+ _FindGatewayGoListPageState ();
3838
3939 @override
4040 void initState () {
@@ -121,22 +121,25 @@ class _FindmDNSClientListPageState extends State<FindmDNSClientListPage> {
121121 Widget build (BuildContext context) {
122122 final tiles = _ServiceMap .values.map (
123123 (pair) {
124- var listItemContent = Padding (
125- padding: const EdgeInsets .fromLTRB (10.0 , 15.0 , 10.0 , 15.0 ),
126- child: Row (
124+ var listItemContent = ListTile (
125+ leading: Icon (Icons .devices,
126+ color: Colors .green),
127+ title: Row (
128+ mainAxisAlignment: MainAxisAlignment .start,
127129 children: < Widget > [
128- Padding (
129- padding: const EdgeInsets .fromLTRB (0.0 , 0.0 , 10.0 , 0.0 ),
130- child: Icon (Icons .devices, color: Colors .green,),
131- ),
132- Expanded (
133- child: Text (
134- '${pair .ip }:${pair .port }' ,
135- style: Constants .titleTextStyle,
136- )),
137- Constants .rightArrowIcon
130+ Text (
131+ '${pair .ip }:${pair .port }' ,
132+ style: Constants .titleTextStyle),
138133 ],
139134 ),
135+ subtitle: TDTag (
136+ "${pair .info ["version" ]!=null ?pair .info ["version" ]:pair .info ["firmware-version" ]}" ,
137+ theme: TDTagTheme .success,
138+ // isOutline: true,
139+ isLight: true ,
140+ fixedWidth: 100 ,
141+ ),
142+ trailing: Constants .rightArrowIcon,
140143 );
141144 return InkWell (
142145 onTap: () {
0 commit comments