aman-satu-flutter/lib/views/inventarization/widget/inventarization_list_tile.dart

54 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:satu/core/models/inventarization/response/inventarization_response.dart';
import 'package:satu/shared/app_colors.dart';
class InventarizationCellTile extends StatelessWidget {
const InventarizationCellTile({
required this.value,
Key? key,
}) : super(key: key);
final String value;
@override
Widget build(BuildContext context) {
return Container(
child: Text(
value,
style: TextStyle(fontSize: 12),
),
);
}
}
class InventarizationCellButton extends StatelessWidget {
const InventarizationCellButton({
required this.value,
Key? key,
}) : super(key: key);
final int? value;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only( right: 15.0),
child: ElevatedButton(
onPressed: value == null ? () {} : () {},
child: Text(
'Акт',
style: TextStyle(fontSize: 12, color: whiteColor),
),
style: ElevatedButton.styleFrom(
backgroundColor: value == null ? disableColor : blueColor
),
),
);
}
}