game_levels_scrolling_map 0.0.7 copy "game_levels_scrolling_map: ^0.0.7" to clipboard
game_levels_scrolling_map: ^0.0.7 copied to clipboard

A package for making game levels map like candy crush or similar games using flutter with ability to be horizontal or vertical

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'examples/map_vertical_example.dart';
import 'examples/map_horizontal_example.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]);
  await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);

  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: MapHorizontalExample(),
      //home: MapVerticalExample(),
    );
  }
}
77
likes
120
points
291
downloads

Publisher

unverified uploader

Weekly Downloads

A package for making game levels map like candy crush or similar games using flutter with ability to be horizontal or vertical

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, path_provider, xml

More

Packages that depend on game_levels_scrolling_map