Skip to content

Api integration #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="flutter_useless_project_sample"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.

In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:label="flutter_useless_project_sample"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.

In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import 'package:flutter/material.dart';

import '../Parties_screen/parties_screen.dart';
import '../Project_screen/project_screen.dart';
import '../Quotation_screen/quotation_screen.dart';
import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const QuotationScreen(),
ProjectScreen(),
PartiesScreen(),
];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';

import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const QuotationScreen(),
ProjectScreen(),
PartiesScreen(),
];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import 'package:flutter/material.dart';

import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const QuotationScreen(),

];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';

import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const QuotationScreen(),
ChatScreen(),

];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import 'package:flutter/material.dart';

import '../main.dart';
import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const QuotationScreen(),
ChatScreen(),

];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import 'package:flutter/material.dart';

import '../main.dart';
import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const TicTacTo(),
ChatScreen(),

];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import 'package:flutter/material.dart';

import '../main.dart';
import 'tic_tac_toe/tic_tac_to.dart';
import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const TicTacTo(),
ChatScreen(),

];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import 'package:flutter/material.dart';

import '../chat_screen.dart';
import '../main.dart';
import 'tic_tac_toe/tic_tac_to.dart';
import 'widgets/bottom_nav.dart';

class BottomNavMainScreen extends StatefulWidget {
const BottomNavMainScreen({super.key});

@override
State<BottomNavMainScreen> createState() => _BottomNavMainScreenState();
}

class _BottomNavMainScreenState extends State<BottomNavMainScreen>
with WidgetsBindingObserver {
final _pages = [
const TicTacTo(),
ChatScreen(),
];

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ValueListenableBuilder(
valueListenable: indexChangeNotifier,
builder: (BuildContext context, int index, Widget? _) {
return _pages[index];
},
),
),
bottomNavigationBar: const BottomNavigationWidget(),
);
}
}
Loading