mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
17 lines
429 B
Dart
17 lines
429 B
Dart
|
import 'package:flowy_sdk/protobuf/flowy-workspace/view_create.pb.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
AssetImage assetImageForViewType(ViewType type) {
|
||
|
final imageName = imageNameForViewType(type);
|
||
|
return AssetImage('assets/images/$imageName');
|
||
|
}
|
||
|
|
||
|
String imageNameForViewType(ViewType type) {
|
||
|
switch (type) {
|
||
|
case ViewType.Doc:
|
||
|
return "file_icon.jpg";
|
||
|
default:
|
||
|
return "file_icon.jpg";
|
||
|
}
|
||
|
}
|