diff --git a/images/building-example.svg b/images/building-example.svg new file mode 100644 index 000000000..66d8ba946 --- /dev/null +++ b/images/building-example.svg @@ -0,0 +1,658 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DORNER DR + + + LINCOLN AVENUE RESIDENCE + + + FAR NW AND SW PARKING LOT + + + LINCOLN AVE RESIDENCE + + + + + + + 0139 + + + C0190 + + + C0195 + + + C0196 + + + 0118 + + + 0138 + + + 0119A + + + C0192 + + + 0111B + + + 0109 + + + C0193A + + + C0194 + + + C0191 + + + S0192A + + + 0161A + + + 0111 + + + C0149 + + + 0138A + + + 0113 + + + STAIR3 + + + 0156 + + + STAIR1 + + + STAIR4 + + + C0193 + + + STAIR6 + + + STAIR5 + + + 0137B + + + 0133 + + + 0137A + + + 0102 + + + 0119B + + + 0112 + + + 0118A + + + 0154 + + + 0143 + + + 0122 + + + 0121 + + + 0193B + + + 0161 + + + 0101 + + + 0100 + + + 0128 + + + 0105 + + + 0103 + + + 0106 + + + 0126 + + + 0107 + + + 0119 + + + 0117 + + + 0118B + + + 0108 + + + 0138C + + + 0114 + + + 0111A + + + 0152 + + + 0164 + + + 0125 + + + 0135 + + + 0112A + + + 0165 + + + 0153 + + + 0125A + + + 0157 + + + 0110 + + + 0155 + + + 0127 + + + 0166 + + + 0124 + + + 0170 + + + 0168 + + + 0172 + + + 0174 + + + 0169 + + + 0150 + + + 0151 + + + 0163 + + + 0171 + + + 0160 + + + 0176 + + + 0167 + + + 0120 + + + C0149E + + + 0158A + + + 0158 + + + 0146 + + + 0144 + + + 0131A + + + 0131B + + + 0104 + + + ELEV1 + + + ELEV2 + + + 0130 + + + 0134 + + + ELEV3 + + + 0123 + + + 0121C + + + 0142 + + + 0120A + + + 0111C + + + 0137C + + + 0173 + + + 0175 + + + 0138B + + + 0141 + + + 0140 + + + 0149D + + + STAIR2 + + + 0162 + + + 0104A + + + 0154A + + + 0152A + + + 0149B + + + 0158B + + + 0115 + + + 0177 + + + 0127A + + + 0149C + + + 0116 + + + 0149A + + + 0129 + + + 0190A + + + + + + + + + + + + + + + + + + MTD Bus Stop + + + + + + + + + + MTD Bus Stop + + + + + + + + + + North Indicator + + + + + + + + + + ADA Entrance + + + + + + + + + + Entrance Exit + + + + + + + + + + Entrance Exit + + + + + + + + + + Entrance Exit + + + + + + + + + + Entrance Exit + + + + + + + + + + Entrance Exit + + + + + + + + + + Entrance Exit + + + + + + + + + + Evacuation Assembly + + + + + + + + + + Evacuation Assembly + + + + + + + + + + Area of Rescue Assistance + + + + + + + + + + Area of Rescue Assistance + + + + + + + + + + Area of Rescue Assistance + + + + + + + + + + Area of Rescue Assistance + + + + + + + + + + All Gender ADA Restroom + + + + + + + + + + All Gender ADA Restroom + + + + + + + + + + Men's Restroom + + + + + + + + + + Women's Restroom + + + + + + + + + + Drinking Fountain + + + + + + + + + + Drinking Fountain + + + + + diff --git a/lib/ui/debug/DebugHomePanel.dart b/lib/ui/debug/DebugHomePanel.dart index d54f67c01..05930ac92 100644 --- a/lib/ui/debug/DebugHomePanel.dart +++ b/lib/ui/debug/DebugHomePanel.dart @@ -21,6 +21,7 @@ import 'package:flutter/services.dart'; import 'package:illinois/service/AppReview.dart'; import 'package:illinois/service/Canvas.dart'; import 'package:illinois/service/CustomCourses.dart'; +import 'package:illinois/ui/debug/DebugSVGPanel.dart'; import 'package:illinois/ui/debug/mobile_access/DebugMobileAccessHomePanel.dart'; import 'package:illinois/ui/debug/DebugRewardsPanel.dart'; import 'package:illinois/ui/debug/DebugStudentCoursesPanel.dart'; @@ -486,6 +487,16 @@ class _DebugHomePanelState extends State implements Notification ) ), ), + Padding(padding: EdgeInsets.symmetric(horizontal: 16, vertical: 5), child: + RoundedButton( + label: "SVG Test", + backgroundColor: Styles().colors.background, + fontSize: 16.0, + textColor: Styles().colors.fillColorPrimary, + borderColor: Styles().colors.fillColorPrimary, + onTap: _onTapSVGTest + ) + ), Padding(padding: EdgeInsets.symmetric(horizontal: 16, vertical: 5), child: RoundedButton( label: "Test Crash", @@ -955,6 +966,10 @@ class _DebugHomePanelState extends State implements Notification } } + void _onTapSVGTest() { + Navigator.push(context, CupertinoPageRoute(builder: (context) => DebugSVGPanel())); + } + void _onTapCrash(){ FirebaseCrashlytics.instance.crash(); } diff --git a/lib/ui/debug/DebugSVGPanel.dart b/lib/ui/debug/DebugSVGPanel.dart new file mode 100644 index 000000000..d93e6266e --- /dev/null +++ b/lib/ui/debug/DebugSVGPanel.dart @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Board of Trustees of the University of Illinois. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import 'package:flutter/material.dart'; +import 'package:pinch_zoom/pinch_zoom.dart'; +import 'package:rokwire_plugin/service/styles.dart'; +import 'package:illinois/ui/widgets/HeaderBar.dart'; +import 'package:flutter_svg/flutter_svg.dart'; + +class DebugSVGPanel extends StatefulWidget{ + _DebugSVGPanelState createState() => _DebugSVGPanelState(); +} + +class _DebugSVGPanelState extends State{ + + @override + void initState() { + super.initState(); + } + + @override + void dispose() { + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Styles().colors.surface, + appBar: HeaderBar(title: "SVG Test",), + body: PinchZoom(maxScale: 12, child: _svgPictureWidget), + ); + } + + Widget get _svgPictureWidget => + SvgPicture.asset( + 'images/building-example.svg', + semanticsLabel: 'Building Example' + ); +} + +