Files
rog_app/lib/widgets/base_layer_widget.dart
Mohamed Nouffer 332a14230e initial rod app
2022-03-14 12:28:57 +05:30

18 lines
471 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
class BaseLayer extends StatelessWidget {
const BaseLayer({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return TileLayerWidget(
options: TileLayerOptions(
backgroundColor: Colors.transparent,
urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
subdomains: ['a', 'b', 'c'],
),
);
}
}