mirror of
https://github.com/git-touch/git-touch
synced 2024-12-12 16:38:36 +01:00
build: file_icon
This commit is contained in:
parent
3218d7fd4a
commit
2e2aa7f235
@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:git_touch/utils/utils.dart';
|
import 'package:git_touch/utils/utils.dart';
|
||||||
import 'package:git_touch/widgets/table_view.dart';
|
import 'package:git_touch/widgets/table_view.dart';
|
||||||
import 'package:primer/primer.dart';
|
import 'package:primer/primer.dart';
|
||||||
import 'package:seti/seti.dart';
|
import 'package:file_icon/file_icon.dart';
|
||||||
|
|
||||||
class ObjectTreeItem {
|
class ObjectTreeItem {
|
||||||
final String url;
|
final String url;
|
||||||
@ -29,7 +29,7 @@ class ObjectTree extends StatelessWidget {
|
|||||||
case 'blob': // github gql, gitlab
|
case 'blob': // github gql, gitlab
|
||||||
case 'file': // github rest, gitea
|
case 'file': // github rest, gitea
|
||||||
case 'commit_file': // bitbucket
|
case 'commit_file': // bitbucket
|
||||||
return SetiIcon(item.name, size: 36);
|
return FileIcon(item.name, size: 36);
|
||||||
case 'tree': // github gql, gitlab
|
case 'tree': // github gql, gitlab
|
||||||
case 'dir': // github rest, gitea
|
case 'dir': // github rest, gitea
|
||||||
case 'commit_directory': // bitbucket
|
case 'commit_directory': // bitbucket
|
||||||
|
@ -19,7 +19,7 @@ dependencies:
|
|||||||
flutter_highlight: ^0.6.0
|
flutter_highlight: ^0.6.0
|
||||||
primer: ^0.0.2
|
primer: ^0.0.2
|
||||||
nanoid: ^0.0.6
|
nanoid: ^0.0.6
|
||||||
seti: ^0.2.0
|
file_icon: ^0.3.0
|
||||||
http: ^0.12.0
|
http: ^0.12.0
|
||||||
intl: ^0.16.0
|
intl: ^0.16.0
|
||||||
url_launcher: ^5.0.2
|
url_launcher: ^5.0.2
|
||||||
|
Loading…
Reference in New Issue
Block a user