initial rod app

This commit is contained in:
Mohamed Nouffer
2022-03-14 12:28:57 +05:30
commit 332a14230e
111 changed files with 4091 additions and 0 deletions

View File

@ -0,0 +1,17 @@
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'],
),
);
}
}

View File

@ -0,0 +1,59 @@
import 'package:flutter/material.dart';
import 'package:geojson/geojson.dart';
class BottomSheetWidget extends StatelessWidget {
//const BottomSheetWidget({ Key? key }, GeoJsonFeature? pt) : super(key: key);
GeoJsonFeature? pt;
BottomSheetWidget({this.pt});
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom,
),
child: Container(
alignment: Alignment.topLeft,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20.0),
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(
child: Container(
height: 35.0,
alignment: Alignment.center,
color: Colors.black12,
child: Text(pt!.properties!["location_name"], style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.bold,
),
),
),
),
IconButton(
onPressed:(){
//homeController.incidents.remove(incident);
Navigator.pop(context);
//popupController.hideAllPopups();
},
icon: Icon(Icons.delete_outlined)
)
],
),
],
),
)
),
),
);
}
}