Designs
This commit is contained in:
parent
21d44d154a
commit
a20a8d8738
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
// This version must be updated in tandem with the pubspec version.
|
// This version must be updated in tandem with the pubspec version.
|
||||||
const String kAppVersion = '2.0.10';
|
const String kAppVersion = '2.0.1';
|
||||||
const String kSiteUrl = 'https://invoiceninja.com';
|
const String kSiteUrl = 'https://invoiceninja.com';
|
||||||
//const String kAppUrl = 'https://admin.invoiceninja.com';
|
//const String kAppUrl = 'https://admin.invoiceninja.com';
|
||||||
const String kAppUrl = 'https://staging.invoicing.co';
|
const String kAppUrl = 'https://staging.invoicing.co';
|
||||||
|
|
|
||||||
|
|
@ -70,19 +70,21 @@ class DesignFields {
|
||||||
abstract class DesignEntity extends Object
|
abstract class DesignEntity extends Object
|
||||||
with BaseEntity
|
with BaseEntity
|
||||||
implements Built<DesignEntity, DesignEntityBuilder> {
|
implements Built<DesignEntity, DesignEntityBuilder> {
|
||||||
factory DesignEntity({String id, AppState state}) {
|
factory DesignEntity(
|
||||||
|
{String id, AppState state, BuiltMap<String, String> design}) {
|
||||||
return _$DesignEntity._(
|
return _$DesignEntity._(
|
||||||
id: id ?? BaseEntity.nextId,
|
id: id ?? BaseEntity.nextId,
|
||||||
isChanged: false,
|
isChanged: false,
|
||||||
name: '',
|
name: '',
|
||||||
design: BuiltMap<String, String>({
|
design: design ??
|
||||||
kDesignHeader: '',
|
BuiltMap<String, String>({
|
||||||
kDesignBody: '',
|
kDesignHeader: '',
|
||||||
kDesignFooter: '',
|
kDesignBody: '',
|
||||||
kDesignProducts: '',
|
kDesignFooter: '',
|
||||||
kDesignTasks: '',
|
kDesignProducts: '',
|
||||||
kDesignIncludes: '',
|
kDesignTasks: '',
|
||||||
}),
|
kDesignIncludes: '',
|
||||||
|
}),
|
||||||
isCustom: true,
|
isCustom: true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,8 +127,10 @@ class DesignScreen extends StatelessWidget {
|
||||||
heroTag: 'design_fab',
|
heroTag: 'design_fab',
|
||||||
backgroundColor: Theme.of(context).primaryColorDark,
|
backgroundColor: Theme.of(context).primaryColorDark,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
createEntityByType(
|
createEntity(
|
||||||
context: context, entityType: EntityType.design);
|
context: context,
|
||||||
|
entity: DesignEntity(
|
||||||
|
design: state.designState.map[kDesignCleanId].design));
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.add,
|
Icons.add,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue