Skip to content

Instantly share code, notes, and snippets.

View wekesa360's full-sized avatar
๐Ÿ‹๏ธโ€โ™‚๏ธ
Bazinga

Michael Wekesa wekesa360

๐Ÿ‹๏ธโ€โ™‚๏ธ
Bazinga
View GitHub Profile

The two errors encountered during running of the local command. These errors are due to mismatch in types in the respective foreign key relationship keys of the created_by fields in the respective tables this will be a temporary simple fix as a more permanant one will be provided later. Error 1: On subscription table.

Database\Seeders\PrescriptionSeeder ...................................................................................................... RUNNING

   Illuminate\Database\QueryException 
@wekesa360
wekesa360 / app.dart
Last active August 18, 2023 07:44
This GIST provides code of the Flutter mobile application developed to handle Workflow 1. Workflow 1 involves a login page where users can log in using their username and password. After successful authentication, the application fetches dashboard data using a Bearer token and presents the summaries on a landing page.
import 'package:cpims_flutter_test_app/pages/dashboard.dart';
import 'package:cpims_flutter_test_app/pages/login.dart';
import 'package:cpims_flutter_test_app/tokenProvider.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class MainApp extends StatelessWidget {
const MainApp({Key? key}) : super(key: key);
@override