mirror of
https://github.com/git-touch/git-touch
synced 2025-01-31 16:14:49 +01:00
chore: remove unused imports
This commit is contained in:
parent
1716714981
commit
76115d0fca
@ -10,8 +10,6 @@ import 'package:git_touch/screens/gt_orgs.dart';
|
|||||||
import 'package:git_touch/screens/gt_user.dart';
|
import 'package:git_touch/screens/gt_user.dart';
|
||||||
import 'package:git_touch/screens/gl_explore.dart';
|
import 'package:git_touch/screens/gl_explore.dart';
|
||||||
import 'package:git_touch/screens/gl_groups.dart';
|
import 'package:git_touch/screens/gl_groups.dart';
|
||||||
import 'package:git_touch/screens/gl_project.dart';
|
|
||||||
import 'package:git_touch/screens/gl_todos.dart';
|
|
||||||
import 'package:git_touch/screens/gl_user.dart';
|
import 'package:git_touch/screens/gl_user.dart';
|
||||||
import 'package:git_touch/screens/login.dart';
|
import 'package:git_touch/screens/login.dart';
|
||||||
import 'package:git_touch/screens/gh_notification.dart';
|
import 'package:git_touch/screens/gh_notification.dart';
|
||||||
|
@ -213,7 +213,7 @@ class ThemeModel with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> showWarning(BuildContext context, String message) {
|
Future<void> showWarning(BuildContext context, String message) async {
|
||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
|
@ -2,13 +2,11 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:git_touch/models/github.dart';
|
import 'package:git_touch/models/github.dart';
|
||||||
import 'package:git_touch/models/notification.dart';
|
import 'package:git_touch/models/notification.dart';
|
||||||
import 'package:git_touch/models/theme.dart';
|
|
||||||
import 'package:git_touch/scaffolds/list_stateful.dart';
|
import 'package:git_touch/scaffolds/list_stateful.dart';
|
||||||
import 'package:git_touch/utils/utils.dart';
|
import 'package:git_touch/utils/utils.dart';
|
||||||
import 'package:git_touch/widgets/action_entry.dart';
|
|
||||||
import 'package:git_touch/widgets/app_bar_title.dart';
|
import 'package:git_touch/widgets/app_bar_title.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import '../widgets/event_item.dart';
|
import 'package:git_touch/widgets/event_item.dart';
|
||||||
import 'package:git_touch/models/auth.dart';
|
import 'package:git_touch/models/auth.dart';
|
||||||
|
|
||||||
class GhNewsScreen extends StatefulWidget {
|
class GhNewsScreen extends StatefulWidget {
|
||||||
@ -52,17 +50,6 @@ class GhNewsScreenState extends State<GhNewsScreen> {
|
|||||||
Widget build(context) {
|
Widget build(context) {
|
||||||
return ListStatefulScaffold<GithubEvent, int>(
|
return ListStatefulScaffold<GithubEvent, int>(
|
||||||
title: AppBarTitle('News'),
|
title: AppBarTitle('News'),
|
||||||
// actionBuilder: () {
|
|
||||||
// return ActionEntry(
|
|
||||||
// iconData:
|
|
||||||
// Provider.of<ThemeModel>(context).brightness == Brightness.dark
|
|
||||||
// ? Ionicons.md_sunny
|
|
||||||
// : Ionicons.md_moon,
|
|
||||||
// onTap: () {
|
|
||||||
// Provider.of<ThemeModel>(context).toggleBrightness();
|
|
||||||
// },
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
itemBuilder: (payload) => EventItem(payload),
|
itemBuilder: (payload) => EventItem(payload),
|
||||||
onRefresh: fetchEvents,
|
onRefresh: fetchEvents,
|
||||||
onLoadMore: (page) => fetchEvents(page),
|
onLoadMore: (page) => fetchEvents(page),
|
||||||
|
@ -4,10 +4,8 @@ import 'package:git_touch/scaffolds/refresh_stateful.dart';
|
|||||||
import 'package:git_touch/utils/utils.dart';
|
import 'package:git_touch/utils/utils.dart';
|
||||||
import 'package:git_touch/widgets/avatar.dart';
|
import 'package:git_touch/widgets/avatar.dart';
|
||||||
import 'package:git_touch/widgets/comment_item.dart';
|
import 'package:git_touch/widgets/comment_item.dart';
|
||||||
import 'package:git_touch/widgets/markdown_view.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:git_touch/models/auth.dart';
|
import 'package:git_touch/models/auth.dart';
|
||||||
import 'package:timeago/timeago.dart' as timeago;
|
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
class GlIssueScreen extends StatelessWidget {
|
class GlIssueScreen extends StatelessWidget {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:git_touch/models/theme.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
|
|
||||||
class Loading extends StatelessWidget {
|
class Loading extends StatelessWidget {
|
||||||
final bool more;
|
final bool more;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user