Skip to content

Commit

Permalink
Revert "add quick_actions"
Browse files Browse the repository at this point in the history
This reverts commit 14437d5
  • Loading branch information
Igor Katsuba committed Dec 7, 2018
1 parent 14437d5 commit adb8a5d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
21 changes: 0 additions & 21 deletions lib/pages/home.dart
@@ -1,8 +1,6 @@
import 'package:flutter/material.dart';
import 'dart:async';
import '../widgets/widgets.dart';
import '../enums/enums.dart';
import 'package:quick_actions/quick_actions.dart';

class HomePage extends StatefulWidget {
HomePage({Key key}) : super(key: key);
Expand All @@ -17,25 +15,6 @@ class _HomePageState extends State<HomePage> {

GlobalKey<NewsListState> newsListKey = GlobalKey<NewsListState>();

@override
void initState() {
// TODO: implement initState
super.initState();

final QuickActions quickActions = const QuickActions();
quickActions.initialize((String shortcutType) {
print(shortcutType);
Navigator.of(context).pushNamed(shortcutType);
});

quickActions.setShortcutItems(<ShortcutItem>[
const ShortcutItem(
type: Routes.About,
localizedTitle: 'About',
icon: '@mipmap/ic_launcher'),
]);
}

@override
Widget build(BuildContext context) {
return Scaffold(
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Expand Up @@ -31,7 +31,6 @@ dependencies:
firebase_remote_config: ^0.0.6+1
http: 0.12.0
firebase_messaging: ^2.1.0
quick_actions: ^0.2.2

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit adb8a5d

Please sign in to comment.