add carton editor for package

This commit is contained in:
tzw
2024-02-05 17:49:12 +06:30
parent afb980e6ae
commit a9e16ede8f
17 changed files with 1216 additions and 82 deletions

View File

@@ -5,10 +5,11 @@ import 'package:flutter/material.dart';
class LocalTitle extends StatelessWidget {
final String? textKey;
final Widget? trailing;
final double topPadding;
final List<String>? translationVariables;
const LocalTitle(
{Key? key, this.textKey, this.trailing, this.translationVariables})
{Key? key, this.textKey, this.trailing, this.translationVariables,this.topPadding = 18})
: super(key: key);
@override
@@ -17,7 +18,7 @@ class LocalTitle extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.only(top: 18),
padding: EdgeInsets.only(top: topPadding),
child: Row(
children: [
LocalText(context, textKey!,