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 @@
+
+
+
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'
+ );
+}
+
+