update boxes

This commit is contained in:
Thinzar Win
2020-10-14 16:53:16 +06:30
parent 6c871ea066
commit 4862f1123d
11 changed files with 894 additions and 264 deletions

View File

@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'box_editor.dart';
import 'box_info.dart';
class BoxListRow extends StatefulWidget {
final bool isReadOnly;
@@ -32,17 +33,10 @@ class _BoxListRowState extends State<BoxListRow> {
padding: EdgeInsets.only(left: 15, right: 15),
child: InkWell(
onTap: () {
if (widget.isReadOnly) {
// Navigator.push(
// context,
// BottomUpPageRoute(PackageInfo(package: _box)),
// );
} else {
Navigator.push(
context,
BottomUpPageRoute(BoxEditor(box: _box)),
);
}
Navigator.push(
context,
BottomUpPageRoute(BoxInfo(box: _box)),
);
},
child: Row(
children: <Widget>[