mirror of
https://github.com/git-touch/git-touch
synced 2024-12-24 06:42:07 +01:00
20 lines
541 B
Dart
20 lines
541 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:git_touch/screens/users.dart';
|
|
import 'package:git_touch/utils/utils.dart';
|
|
|
|
final starsRouter = RouterScreen('/:owner/:name/watchers', (context, params) {
|
|
return StarsScreen(params['owner'].first, params['name'].first);
|
|
});
|
|
|
|
class StarsScreen extends StatelessWidget {
|
|
final String owner;
|
|
final String login;
|
|
|
|
StarsScreen(this.owner, this.login);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return UsersScreen(login, UsersScreenType.watch, repoName: owner);
|
|
}
|
|
}
|