mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 20:16:25 +00:00
Format Code and Add Format Checks to CI (#643)
* Remove unused lib/generated/i18n.dart * Use `fvm dart format .` * Add contributing guidelines * Enforce dart format * Add `dart format off` directive to generated files
This commit is contained in:
parent
e9db6532e4
commit
4444884afa
100 changed files with 5332 additions and 5592 deletions
|
|
@ -10,19 +10,15 @@ import "package:inventree/inventree/company.dart";
|
|||
import "package:inventree/widget/refreshable_state.dart";
|
||||
|
||||
class PartSupplierWidget extends StatefulWidget {
|
||||
|
||||
const PartSupplierWidget(this.part, {Key? key}) : super(key: key);
|
||||
|
||||
final InvenTreePart part;
|
||||
|
||||
@override
|
||||
_PartSupplierState createState() => _PartSupplierState(part);
|
||||
|
||||
}
|
||||
|
||||
|
||||
class _PartSupplierState extends RefreshableState<PartSupplierWidget> {
|
||||
|
||||
_PartSupplierState(this.part);
|
||||
|
||||
final InvenTreePart part;
|
||||
|
|
@ -46,7 +42,6 @@ class _PartSupplierState extends RefreshableState<PartSupplierWidget> {
|
|||
}
|
||||
|
||||
Widget _supplierPartTile(BuildContext context, int index) {
|
||||
|
||||
InvenTreeSupplierPart _part = _supplierParts[index];
|
||||
|
||||
return ListTile(
|
||||
|
|
@ -73,5 +68,4 @@ class _PartSupplierState extends RefreshableState<PartSupplierWidget> {
|
|||
itemBuilder: _supplierPartTile,
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue