Load user preferences at start of app. Manage locations: user is able to add locations by lat and lon to shared preferences
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ManageSingleLocation extends StatelessWidget {
|
||||
final String name;
|
||||
final Function delete;
|
||||
const ManageSingleLocation(
|
||||
{Key? key, required this.name, required this.delete})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: Row(children: [
|
||||
Text(name, style: Theme.of(context).textTheme.headline5),
|
||||
const Spacer(),
|
||||
const Icon(Icons.delete_sharp)
|
||||
])));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user