← Back to Tony's Portfolio

Packr – Carton Packing App

An offline Flutter app for planning complete packing orders: reuse products and carton sizes, compare single-carton fits, distribute quantities across multiple cartons and inspect each layout in 3D.

Problem

Packing different products into cartons can be difficult when dimensions, quantities, orientation, and practical packing limitations need to be considered.

Packr per-carton 3D layout with 15 units of Product 2
Per-carton 3D preview showing 15 units of Product 2 and a loading-step slider.
Packr complete 25-item order allocated across two cartons
This example packs all 25 requested items into two carton sizes, with contents and fill shown for each carton.
Packr product library actions and planning controls
Products can be saved to a reusable library and used for carton comparison or multi-carton planning.
Packr comparison explaining why no single carton fits the order
Carton comparison explains why neither saved size fits the entire 25-item order in one carton.

Solution

Packr now connects reusable libraries with order-level planning. It compares saved carton sizes, reports when no complete single-carton fit is found, and can combine different sizes to fulfill the requested order. Users choose how products may mix and inspect the contents and loading sequence of each carton.

Key Features

  • Mixed products with free, upright or flat orientation rules
  • Requested quantities or mixed-capacity estimates using quantities as proportions
  • Optional floor-first loading with supported, non-overlapping placements
  • Complete saved jobs, including products, settings and display units
  • Offline 3D viewer with rotation, zoom, top view and loading steps
  • Packed/unpacked counts, fill rate and consistent mm/cm conversion
  • Searchable product and carton libraries with names, optional SKUs and reusable dimensions
  • Compare saved carton sizes and inspect complete-fit recommendations
  • Multi-carton plans using one size or a combination of library sizes

Order planning and mixing rules

Multi-carton planning uses exact requested quantities. Choose strict SKU/lot separation, mix leftovers only, or unrestricted mixing. The default leftover mode combines a whole carton into an existing carton only when this removes a carton; different lots of the same SKU stay separate. Plans show size totals, per-carton contents and 3D previews.

Engineering and validation

The native Flutter viewer works offline, and calculations run in worker isolates on native targets. Single-product packing compares eight greedy strategies; mixed products compare sixteen and favor balanced fulfillment. Library templates are independent of saved jobs. Automated tests cover packing geometry, quantities, orientation, persistence and viewer behavior.

Planning limits

Results are feasible estimates, not guarantees of the smallest carton, fewest cartons or globally optimal packing. Capacity mode can exceed entered quantities because it treats them as proportions. Full support is required beneath elevated boxes. Weight, fragility, crushing strength, insertion clearance and real-world loading access are not modeled.

Tools Used

Flutter Dart Flutter CustomPainter Packing Algorithms SharedPreferences