1
0
mirror of https://github.com/git-touch/git-touch synced 2025-02-15 02:50:48 +01:00
git-touch-android-ios-app/lib/screens/gh_gist_object.dart

32 lines
912 B
Dart
Raw Normal View History

2022-09-17 20:35:45 +08:00
import 'package:flutter/widgets.dart';
2022-10-08 00:55:47 +08:00
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
import 'package:git_touch/scaffolds/common.dart';
2022-09-17 20:35:45 +08:00
import 'package:git_touch/widgets/action_entry.dart';
import 'package:git_touch/widgets/blob_view.dart';
class GistObjectScreen extends StatelessWidget {
2022-09-22 00:28:21 +08:00
const GistObjectScreen(this.login, this.id, this.file,
{this.raw, this.content});
final String login;
final String id;
final String file;
2021-05-16 15:16:35 +08:00
final String? raw;
final String? content;
@override
Widget build(BuildContext context) {
return CommonScaffold(
2022-10-08 01:06:03 +08:00
title: Text(file),
2022-09-07 00:28:12 +08:00
action: const ActionEntry(
2021-02-14 22:17:22 +08:00
iconData: Ionicons.cog,
url: '/choose-code-theme',
),
body: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: BlobView(
file,
text: content,
)));
}
}