TIF_E41202429/Mobile/patrolin/skripsi/lib/view/test.dart

33 lines
780 B
Dart

import 'package:flutter/material.dart';
class Test extends StatelessWidget {
final bool isStatusHigh = false;
const Test(
{super.key}); // Ganti dengan status rendah atau tinggi sesuai kebutuhan
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Warna Garis Tepi Lingkaran'),
),
body: Center(
child: Container(
width: 100,
height: 100,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: isStatusHigh ? Colors.red : Colors.green,
width: 2.0,
),
),
),
),
),
);
}
}