iTranslated by AI
Cannot use the 'layers' property in the flutter_map package
Conclusion: The syntax has changed
The options were inside children.
return FlutterMap(
// Map display settings
options: MapOptions(
center: LatLng(35.681, 139.767),
zoom: 14.0,
interactiveFlags: InteractiveFlag.all,
enableScrollWheel: true,
scrollWheelVelocity: 0.00001,
),
children: [
TileLayer(
urlTemplate: "https://tile.openstreetmap.jp/{z}/{x}/{y}.png",
userAgentPackageName: 'land_place',
)
],
);
Recommendations
I have compiled my personal recommendations for starting app development with Flutter.
For books, I think it's a good idea to read the latest ones for free via Kindle Unlimited.
Recommended Books
If you are starting now, you should avoid reading books written during the Flutter 1.x era.
The reason is that since Flutter 2.x, a specification called null-safety was added, and the coding style changed significantly.
I started learning Flutter around the time 2.x was released, and I struggled quite a bit because the information was unreliable.
For beginners 【Free with Kindle Unlimited】
Let's make apps that run on smartphones! Flutter Practical Introduction from Scratch ①: Let's make a simple app
Detailed Flutter by a Beginner for Beginners
For intermediate learners (Covers specific implementation methods and technologies like billing implementation)
Introduction to Flutter Development for Practical Use
Discussion