Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated links for city notifications, 211, and beach safety
  • Loading branch information
abikaram committed Apr 25, 2023
1 parent 732e52f commit b262670
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 35 deletions.
32 changes: 32 additions & 0 deletions lib/screens/safer_main_menu/personal_safety.dart
@@ -1,4 +1,6 @@
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

class PersonalSafety extends StatefulWidget {
final String title;
Expand Down Expand Up @@ -208,6 +210,36 @@ class _PersonalSafetyState extends State<PersonalSafety> {
],
),
),
Card(
clipBehavior: Clip.antiAlias,
child: Column(
children: [
Padding(
padding: const EdgeInsets.all(8),
),
ListTile(
leading: CircleAvatar(
backgroundImage: AssetImage('assets/images/beach.png')),
title: const Text('Beach Safety'),
subtitle: RichText(
text: TextSpan(
style: TextStyle(
color: Colors.blue.withOpacity(1),
fontFamily: 'Raleway'),
text: 'National Oceanic and Atmospheric Administration Guidelines',
recognizer: TapGestureRecognizer()
..onTap = () {
launch(
'https://www.noaa.gov/stories/story-map-play-it-safe');
},
),
)),
Padding(
padding: const EdgeInsets.all(8),
),
],
),
)
],
),
);
Expand Down
30 changes: 0 additions & 30 deletions lib/screens/safer_main_menu/property_safety.dart
Expand Up @@ -244,36 +244,6 @@ class _PropertySafetyState extends State<PropertySafety> {
],
),
),
Card(
clipBehavior: Clip.antiAlias,
child: Column(
children: [
Padding(
padding: const EdgeInsets.all(8),
),
ListTile(
leading: CircleAvatar(
backgroundImage: AssetImage('assets/images/beach.png')),
title: const Text('Beach Safety'),
subtitle: RichText(
text: TextSpan(
style: TextStyle(
color: Colors.blue.withOpacity(1),
fontFamily: 'Raleway'),
text: 'Bridgeport Flood/Storm Surge Map',
recognizer: TapGestureRecognizer()
..onTap = () {
launch(
'https://www.bridgeportct.gov/filestorage/341650/341652/346107/342903/SLOSH-bridgeport_(2).pdf');
},
),
)),
Padding(
padding: const EdgeInsets.all(8),
),
],
),
),
],
),
);
Expand Down
3 changes: 1 addition & 2 deletions lib/screens/safer_main_menu/stay_in_touch.dart
Expand Up @@ -151,8 +151,7 @@ class _StayInTouchState extends State<StayInTouch> {
fontFamily: 'Raleway'),
),
onTap: () {
launch('https://uwc.211ct.org/contact/'
+ UtilPreferences.getString(Preferences.location));
launch('http://www.211ct.org/');
},
),
Padding(
Expand Down
6 changes: 3 additions & 3 deletions lib/screens/safer_main_menu/storm_tracking.dart
Expand Up @@ -21,9 +21,9 @@ class _StormTrackingState extends State<StormTracking> {
"Bridgeport": "https://veoci.com/veoci/p/form/y9qpadaf4mq9#tab=entryForm",
"Milford": "https://www.ci.milford.ct.us/sign-up-for-e-alerts",
"New Haven":
"https://www.newhavenct.gov/gov/depts/emergency_info/alerts.htm",
"New London": "",
"Norwalk": "",
"https://www.newhavenct.gov/government/departments-divisions/office-of-emergency-management/new-haven-alerts-login-or-sign-up",
"New London": "https://portal.ct.gov/CTAlert/Common-Elements/Common-Elements/Sign-up-for-CT-Alerts",
"Norwalk": "https://www.norwalkct.gov/list.aspx",
};

@override
Expand Down

0 comments on commit b262670

Please sign in to comment.