From 8b91028493a8a346af448ee41eb49f8555c2f0b8 Mon Sep 17 00:00:00 2001 From: xuhang-x <36baea72@gmail.com> Date: Tue, 23 Jul 2024 11:18:54 +0800 Subject: [PATCH] 1 --- ios/Podfile | 6 ++--- lib/page/about/about_view.dart | 1 + lib/page/ai_manager/ai_manager_view.dart | 1 + lib/page/feed_back/feed_back_view.dart | 1 + test/widget_test.dart | 30 ------------------------ 5 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 test/widget_test.dart diff --git a/ios/Podfile b/ios/Podfile index 14c4e0f..293e648 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -32,9 +32,9 @@ target 'Runner' do use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end +# target 'RunnerTests' do +# inherit! :search_paths +# end end post_install do |installer| diff --git a/lib/page/about/about_view.dart b/lib/page/about/about_view.dart index 29dce6e..56407d3 100644 --- a/lib/page/about/about_view.dart +++ b/lib/page/about/about_view.dart @@ -12,6 +12,7 @@ class AboutView extends GetView { @override Widget build(BuildContext context) { return Scaffold( + backgroundColor: Colors.black, body: Container( decoration: const BoxDecoration( image: DecorationImage( diff --git a/lib/page/ai_manager/ai_manager_view.dart b/lib/page/ai_manager/ai_manager_view.dart index fffb0e6..271736d 100644 --- a/lib/page/ai_manager/ai_manager_view.dart +++ b/lib/page/ai_manager/ai_manager_view.dart @@ -13,6 +13,7 @@ class AiManagerView extends GetView { @override Widget build(BuildContext context) { return Scaffold( + backgroundColor: Colors.black, body: Container( decoration: const BoxDecoration( image: DecorationImage( diff --git a/lib/page/feed_back/feed_back_view.dart b/lib/page/feed_back/feed_back_view.dart index 8b053d8..433af9d 100644 --- a/lib/page/feed_back/feed_back_view.dart +++ b/lib/page/feed_back/feed_back_view.dart @@ -11,6 +11,7 @@ class FeedBackView extends GetView { @override Widget build(BuildContext context) { return Scaffold( + backgroundColor: Colors.black, body: Container( decoration: const BoxDecoration( image: DecorationImage( diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 383ca4d..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:wallpaperx/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -}