mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 03:18:57 +03:30
Change some writing
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import 'package:cssd/config/colors.dart';
|
import 'package:cssd/config/colors.dart';
|
||||||
import 'package:cssd/widgets/TestResultScreens/Main/filter_chip_box.dart';
|
import 'package:cssd/widgets/TestResultScreens/Main/filter_chip_box.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
import '../../config/routes.dart';
|
import '../../config/routes.dart';
|
||||||
@@ -373,6 +374,11 @@ class TestItemBox extends StatelessWidget {
|
|||||||
Navigator.of(ctx).pop();
|
Navigator.of(ctx).pop();
|
||||||
Navigator.of(context).popAndPushNamed(
|
Navigator.of(context).popAndPushNamed(
|
||||||
Routes.testVerifyScreen);
|
Routes.testVerifyScreen);
|
||||||
|
Fluttertoast.showToast(
|
||||||
|
msg: "Test is verified.",
|
||||||
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
|
gravity: ToastGravity.BOTTOM,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
child: Text('Yes'),
|
child: Text('Yes'),
|
||||||
@@ -427,6 +433,11 @@ class TestItemBox extends StatelessWidget {
|
|||||||
Navigator.of(ctx).pop();
|
Navigator.of(ctx).pop();
|
||||||
Navigator.of(context).popAndPushNamed(
|
Navigator.of(context).popAndPushNamed(
|
||||||
Routes.testVerifyScreen);
|
Routes.testVerifyScreen);
|
||||||
|
Fluttertoast.showToast(
|
||||||
|
msg: "Test is rejected.",
|
||||||
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
|
gravity: ToastGravity.BOTTOM,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
child: Text('Yes'),
|
child: Text('Yes'),
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class LabelsProvider extends ChangeNotifier {
|
|||||||
for (var package in filterDatas['data']) {
|
for (var package in filterDatas['data']) {
|
||||||
// result.add(
|
// result.add(
|
||||||
// "${package['name']} - ${package['package_id'] != null ? package['package_id'] : ''}");
|
// "${package['name']} - ${package['package_id'] != null ? package['package_id'] : ''}");
|
||||||
result.add(package['id'].toString());
|
result.add("${package['id'].toString()} - ${package['name'].toString()}");
|
||||||
}
|
}
|
||||||
packageVals = result;
|
packageVals = result;
|
||||||
initialPackageValue = packageId ?? packageVals[0];
|
initialPackageValue = packageId ?? packageVals[0];
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import '../../../models/label_models.dart';
|
|||||||
|
|
||||||
class LabelItemBox extends StatelessWidget {
|
class LabelItemBox extends StatelessWidget {
|
||||||
final LabelResultObject? item;
|
final LabelResultObject? item;
|
||||||
|
|
||||||
const LabelItemBox({
|
const LabelItemBox({
|
||||||
Key? key,
|
Key? key,
|
||||||
required double deviceBlockSize,
|
required double deviceBlockSize,
|
||||||
@@ -53,7 +54,7 @@ class LabelItemBox extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
width: 30 * _deviceBlockSize,
|
width: 30 * _deviceBlockSize,
|
||||||
child: Text(
|
child: Text(
|
||||||
'Package:',
|
item!.id,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 3 * _deviceBlockSize,
|
fontSize: 3 * _deviceBlockSize,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class PackageItemBox extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
width: 30 * _deviceBlockSize,
|
width: 30 * _deviceBlockSize,
|
||||||
child: Text(
|
child: Text(
|
||||||
'Package Name:',
|
item!.id,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 3 * _deviceBlockSize,
|
fontSize: 3 * _deviceBlockSize,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
|
|||||||
Reference in New Issue
Block a user