mirror of
https://github.com/git-touch/git-touch
synced 2024-12-25 15:22:38 +01:00
21 lines
563 B
Dart
21 lines
563 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:git_touch/screens/users.dart';
|
|
import 'package:git_touch/utils/utils.dart';
|
|
|
|
final stargazersRouter =
|
|
RouterScreen('/:owner/:name/stargazers', (context, params) {
|
|
return StargazersScreen(params['owner'].first, params['name'].first);
|
|
});
|
|
|
|
class StargazersScreen extends StatelessWidget {
|
|
final String owner;
|
|
final String name;
|
|
|
|
StargazersScreen(this.owner, this.name);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return UsersScreen(owner, UsersScreenType.star, repoName: name);
|
|
}
|
|
}
|