mirror of
https://github.com/git-touch/git-touch
synced 2025-02-23 23:07:53 +01:00
fix: lint problems
This commit is contained in:
parent
8c4a9ee3a1
commit
1269b66eb4
@ -116,70 +116,70 @@ class _HomeState extends State<Home> {
|
||||
return [
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.rss_feed),
|
||||
title: Text('News'),
|
||||
label: 'News',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: _buildNotificationIcon(context, false),
|
||||
activeIcon: _buildNotificationIcon(context, true),
|
||||
title: Text('Notification'),
|
||||
label: 'Notification',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.whatshot),
|
||||
title: Text('Trending'),
|
||||
label: 'Trending',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.search),
|
||||
title: Text('Search'),
|
||||
label: 'Search',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.person),
|
||||
activeIcon: Icon(Icons.person),
|
||||
title: Text('Me'),
|
||||
label: 'Me',
|
||||
),
|
||||
];
|
||||
case PlatformType.gitlab:
|
||||
return [
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.explore),
|
||||
title: Text('Explore'),
|
||||
label: 'Explore',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.group),
|
||||
title: Text('Groups'),
|
||||
label: 'Groups',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.search),
|
||||
title: Text('Search'),
|
||||
label: 'Search',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.person),
|
||||
title: Text('Me'),
|
||||
label: 'Me',
|
||||
),
|
||||
];
|
||||
case PlatformType.bitbucket:
|
||||
return [
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.explore),
|
||||
title: Text('Explore'),
|
||||
label: 'Explore',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.group),
|
||||
title: Text('Teams'),
|
||||
label: 'Teams',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.person),
|
||||
title: Text('Me'),
|
||||
label: 'Me',
|
||||
),
|
||||
];
|
||||
case PlatformType.gitea:
|
||||
return [
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.group),
|
||||
title: Text('Organizations'),
|
||||
label: 'Organizations',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.person),
|
||||
title: Text('Me'),
|
||||
label: 'Me',
|
||||
),
|
||||
];
|
||||
}
|
||||
|
@ -345,9 +345,6 @@ class AuthModel with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Map<String, String> get _headers =>
|
||||
{HttpHeaders.authorizationHeader: 'token $token'};
|
||||
|
||||
// http timeout
|
||||
var _timeoutDuration = Duration(seconds: 10);
|
||||
// var _timeoutDuration = Duration(seconds: 1);
|
||||
|
@ -1,5 +1,3 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:git_touch/models/auth.dart';
|
||||
|
@ -1,5 +1,3 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:filesize/filesize.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
@ -300,7 +300,6 @@ class GhUserScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final auth = Provider.of<AuthModel>(context);
|
||||
final theme = Provider.of<ThemeModel>(context);
|
||||
return RefreshStatefulScaffold<GhUserRepositoryOwner>(
|
||||
fetchData: () async {
|
||||
final data = await auth.gqlClient.execute(GhUserQuery(
|
||||
|
@ -8,7 +8,6 @@ import 'package:git_touch/models/theme.dart';
|
||||
import 'package:git_touch/scaffolds/refresh_stateful.dart';
|
||||
import 'package:git_touch/utils/utils.dart';
|
||||
import 'package:git_touch/widgets/app_bar_title.dart';
|
||||
import 'package:git_touch/widgets/diff_view.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
// TODO:
|
||||
|
@ -1,5 +1,4 @@
|
||||
import 'dart:io';
|
||||
import 'package:fluro/fluro.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
|
@ -1,7 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:git_touch/models/theme.dart';
|
||||
import 'package:git_touch/widgets/avatar.dart';
|
||||
import 'package:git_touch/widgets/label.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:timeago/timeago.dart' as timeago;
|
||||
import '../utils/utils.dart';
|
||||
|
Loading…
x
Reference in New Issue
Block a user