mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-08 11:07:42 +08:00
db optimize
This commit is contained in:
@@ -22,7 +22,7 @@ class MyApp extends StatelessWidget {
|
||||
final _shellRoute = ShellRoute(
|
||||
builder: (BuildContext context, GoRouterState state, Widget child) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
appBar: AppBar(
|
||||
// TRY THIS: Try changing the color here to a specific color (to
|
||||
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
|
||||
// change color while the other colors stay the same.
|
||||
@@ -30,6 +30,11 @@ class MyApp extends StatelessWidget {
|
||||
// Here we take the value from the MyHomePage object that was created by
|
||||
// the App.build method, and use it to set our appbar title.
|
||||
title: const Text("Polaris追剧"),
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: () => context.go(SystemSettingsPage.route),
|
||||
icon: const Icon(Icons.settings))
|
||||
],
|
||||
),
|
||||
body: Center(
|
||||
// Center is a layout widget. It takes a single child and positions it
|
||||
|
||||
24
ui/lib/tv_details.dart
Normal file
24
ui/lib/tv_details.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TvDetailsPage extends StatefulWidget {
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
// TODO: implement createState
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class _TvDetailsPageState extends State<TvDetailsPage> {
|
||||
final int tvId = 1;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// TODO: implement build
|
||||
throw Column(
|
||||
children: [
|
||||
|
||||
],
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -48,7 +48,7 @@ class _WeclomePageState extends State<WelcomePage> {
|
||||
),
|
||||
Flexible(
|
||||
child: Text(
|
||||
item.title!,
|
||||
item.name!,
|
||||
style: const TextStyle(
|
||||
fontSize: 14, fontWeight: FontWeight.bold),
|
||||
),
|
||||
@@ -75,7 +75,7 @@ class _WeclomePageState extends State<WelcomePage> {
|
||||
class TvSeries {
|
||||
int? id;
|
||||
int? tmdbId;
|
||||
String? title;
|
||||
String? name;
|
||||
String? originalName;
|
||||
String? overview;
|
||||
String? path;
|
||||
@@ -84,7 +84,7 @@ class TvSeries {
|
||||
TvSeries(
|
||||
{this.id,
|
||||
this.tmdbId,
|
||||
this.title,
|
||||
this.name,
|
||||
this.originalName,
|
||||
this.overview,
|
||||
this.path,
|
||||
@@ -93,7 +93,7 @@ class TvSeries {
|
||||
TvSeries.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
tmdbId = json['tmdb_id'];
|
||||
title = json['title'];
|
||||
name = json['name'];
|
||||
originalName = json['original_name'];
|
||||
overview = json['overview'];
|
||||
path = json['path'];
|
||||
|
||||
Reference in New Issue
Block a user