Rename app to SIAB Scale and update test suite

This commit is contained in:
Andrew committed 2026-09-02 14:20:59 +07:00
1 parent b67e8da37b
commit ec495367ae
10 files changed
+57 -29

No files matched your search

+4 -4
View File
@@ -82,7 +82,7 @@ class _DevicesScreenState extends State<DevicesScreen> {
builder: (ctx) => AlertDialog(
title: const Text('Unregister device'),
content: Text(
'Remove \"${device.label}\" (${device.uuid}) from registered devices?',
'Remove "${device.label}" (${device.uuid}) from registered devices?',
),
actions: [
TextButton(
@@ -117,7 +117,7 @@ class _DevicesScreenState extends State<DevicesScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('TIMBANGAN SIAB'),
title: const Text('SIAB SCALE'),
actions: [
IconButton(
onPressed: _loading ? null : _loadSaved,
@@ -148,7 +148,7 @@ class _DevicesScreenState extends State<DevicesScreen> {
if (_scanResults.isEmpty && !ble.isScanning)
const Card(child: Padding(
padding: EdgeInsets.all(16),
child: Text('Tap \"Scan Timbangan\" lihat melihat timbangan di sekitar.'),
child: Text('Tap "Scan Timbangan" lihat melihat timbangan di sekitar.'),
))
else
..._scanResults.map((r) {
@@ -300,7 +300,7 @@ class _ListRow extends StatelessWidget {
'$label:',
style: TextStyle(
fontWeight: FontWeight.w600,
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.8),
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.8),
fontSize: 13,
),
),
+1 -1
View File
@@ -25,7 +25,7 @@ class _HomeScreenState extends State<HomeScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Timbangan Bluetooh'),
title: const Text('SIAB Scale'),
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
actions: [
Consumer<BLEService>(
+2 -2
View File
@@ -58,8 +58,8 @@ class TimbangScreen extends StatelessWidget {
builder: (context, snapshot) {
final label = snapshot.data?.trim() ?? '';
final title = isConnected && label.isNotEmpty
? 'TIMBANGAN $label SIAB'
: 'TIMBANGAN SIAB';
? 'SIAB SCALE - $label'
: 'SIAB SCALE';
return _HeaderSection(
title: title,