update carton list and editor

This commit is contained in:
tzw
2024-02-01 18:07:40 +06:30
parent eff1ae4688
commit 24f2dc110c
20 changed files with 1951 additions and 954 deletions

View File

@@ -5,8 +5,11 @@ import 'package:flutter/material.dart';
class LocalTitle extends StatelessWidget {
final String? textKey;
final Widget? trailing;
final List<String>? translationVariables;
const LocalTitle({Key? key, this.textKey, this.trailing}) : super(key: key);
const LocalTitle(
{Key? key, this.textKey, this.trailing, this.translationVariables})
: super(key: key);
@override
Widget build(BuildContext context) {
@@ -17,13 +20,11 @@ class LocalTitle extends StatelessWidget {
padding: EdgeInsets.only(top: 18),
child: Row(
children: [
LocalText(
context,
textKey!,
fontSize: 20,
fontWeight: FontWeight.bold,
color: primaryColor,
),
LocalText(context, textKey!,
fontSize: 20,
fontWeight: FontWeight.bold,
color: primaryColor,
translationVariables: translationVariables),
trailing != null ? Spacer() : Container(),
trailing != null ? trailing! : Container()
],