This commit is contained in:
Hamza-Ayed
2023-11-11 23:02:56 +03:00
parent e4292198c1
commit 8d405c5381
10 changed files with 193 additions and 239 deletions

View File

@@ -1,4 +1,3 @@
import 'package:chat_gpt_flutter/chat_gpt_flutter.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:ride/constant/colors.dart';
@@ -26,7 +25,7 @@ class HomeScreen extends StatelessWidget {
body: Obx(() => IndexedStack(
index: controller.currentIndex.value,
children: [
HomeView(chatGpt: ChatGpt(apiKey: AppCredintials.chatGPTkey)),
HomeView(),
const ProfileView(),
const StatisticsView(),
const WalletView(),
@@ -72,8 +71,8 @@ class HomeScreen extends StatelessWidget {
}
class HomeView extends StatelessWidget {
const HomeView({super.key, required this.chatGpt});
final ChatGpt chatGpt;
const HomeView({super.key});
@override
Widget build(BuildContext context) {
Map<String, dynamic> data;