mirror of
https://github.com/git-touch/git-touch
synced 2025-02-20 13:30:38 +01:00
improvement(gitlab): code settings
This commit is contained in:
parent
df3d3e419b
commit
f604d467dc
@ -1,8 +1,10 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:git_touch/models/auth.dart';
|
||||
import 'package:git_touch/models/gitlab.dart';
|
||||
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/action_entry.dart';
|
||||
import 'package:git_touch/widgets/app_bar_title.dart';
|
||||
import 'package:git_touch/widgets/blob_view.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@ -28,6 +30,13 @@ class GitlabBlobScreen extends StatelessWidget {
|
||||
'/projects/$id/repository/files/$encodedPath?ref=master'); // TODO:
|
||||
return GitlabBlob.fromJson(res);
|
||||
},
|
||||
action: ActionEntry(
|
||||
iconData: Icons.settings,
|
||||
onTap: () {
|
||||
final theme = Provider.of<ThemeModel>(context);
|
||||
theme.push(context, '/choose-code-theme');
|
||||
},
|
||||
),
|
||||
bodyBuilder: (data, _) {
|
||||
return BlobView(path, base64Text: data.content);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user