Skip to main content

jet_cad_floor_plan 0.7.1 copy "jet_cad_floor_plan: ^0.7.1" to clipboard
jet_cad_floor_plan: ^0.7.1 copied to clipboard

discontinuedreplaced by: jet_cad_2d_plan

An embeddable parametric floor planner for Flutter: walls, openings, rooms, dimensions and furniture symbols, with a host API for tables.

example/lib/main.dart

// The floor planner over an empty plan, with the furniture library the
// package ships. Run from the package directory with
// `flutter run -t example/lib/main.dart`.
import 'package:flutter/material.dart';
import 'package:jet_cad_floor_plan/jet_cad_floor_plan.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await ensureFloorPlanFonts();
  registerFontLicences();
  runApp(const FloorPlanExampleApp());
}

class FloorPlanExampleApp extends StatefulWidget {
  const FloorPlanExampleApp({super.key});

  @override
  State<FloorPlanExampleApp> createState() => FloorPlanExampleAppState();
}

class FloorPlanExampleAppState extends State<FloorPlanExampleApp> {
  /// One loader for the furniture library the package ships.
  final SymbolLibraryLoader symbols =
      SymbolLibraryLoader(sources: const [furnitureSymbolSource]);

  late final FloorPlanController controller =
      FloorPlanController(symbols: symbols);

  @override
  void dispose() {
    controller.dispose();
    symbols.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) => MaterialApp(
        supportedLocales: floorPlanSupportedLocales,
        localizationsDelegates: floorPlanLocalizationsDelegates,
        home: Scaffold(body: FloorPlanView(controller: controller)),
      );
}
0
likes
150
points
81
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An embeddable parametric floor planner for Flutter: walls, openings, rooms, dimensions and furniture symbols, with a host API for tables.

Topics

#cad #floor-plan #restaurant #point-of-sale

License

Apache-2.0 (license)

Dependencies

flutter, flutter_localizations, jet_cad_2d, jet_cad_2d_flutter, meta, pdf, printing, vector_math

More

Packages that depend on jet_cad_floor_plan