mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Feature Timeline: Add a link to GitHub issues
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
import 'package:gitjournal/features.dart';
|
import 'package:gitjournal/features.dart';
|
||||||
|
|
||||||
@ -30,6 +32,7 @@ class FeatureTimelineScreen extends StatelessWidget {
|
|||||||
iconText: "PLAN",
|
iconText: "PLAN",
|
||||||
iconColor: theme.accentColor,
|
iconColor: theme.accentColor,
|
||||||
),
|
),
|
||||||
|
_DevelopmentText(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -146,3 +149,40 @@ class _Sign extends StatelessWidget {
|
|||||||
return Text(text, style: textStyle);
|
return Text(text, style: textStyle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class _DevelopmentText extends StatelessWidget {
|
||||||
|
static const githubUrl =
|
||||||
|
"https://github.com/GitJournal/GitJournal/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc";
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
var style = Theme.of(context).textTheme.bodyText2;
|
||||||
|
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
child: RichText(
|
||||||
|
text: TextSpan(
|
||||||
|
children: [
|
||||||
|
TextSpan(
|
||||||
|
text: "GitJournal's development is tracked on ",
|
||||||
|
style: style,
|
||||||
|
),
|
||||||
|
TextSpan(
|
||||||
|
text: 'GitHub',
|
||||||
|
style: const TextStyle(color: Colors.blue),
|
||||||
|
recognizer: TapGestureRecognizer()
|
||||||
|
..onTap = () {
|
||||||
|
launch(githubUrl);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
TextSpan(
|
||||||
|
text:
|
||||||
|
" Please consider voting on the issues you consider important.",
|
||||||
|
style: style,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user