0% found this document useful (0 votes)
52 views4 pages

Flutter Crypto App with Firebase Integration

The document outlines the configuration and structure of a Flutter application that integrates Firebase and local storage with SQLite. It includes dependencies in the pubspec.yaml file, a basic main.dart setup for initializing Firebase and providers, and various Android and iOS configuration files. Additionally, it features a page for sharing cryptocurrency price information through social media integration.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views4 pages

Flutter Crypto App with Firebase Integration

The document outlines the configuration and structure of a Flutter application that integrates Firebase and local storage with SQLite. It includes dependencies in the pubspec.yaml file, a basic main.dart setup for initializing Firebase and providers, and various Android and iOS configuration files. Additionally, it features a page for sharing cryptocurrency price information through social media integration.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

==== pubspec.

yaml ====================

dependencies:
flutter:
sdk: flutter

firebase_core: "^1.3.0"
firebase_auth: "^2.0.0"
sqflite: "^2.0.0+3"

dev_dependencies:
flutter_test:
sdk: flutter

=================

=== .gitignore ======================

app.*.symbols
app.*.[Link]
/android/app/debug
/android/app/profile
/android/app/release

**/ios/[Link]
**/android/app/[Link]

====================

=== [Link] ===================

void main() async {


[Link]();
await [Link]();
await [Link](); // <<= incluído

runApp(
MultiProvider(
providers: [
ChangeNotifierProvier(create: (context) =>
ContaRepository() ),
ChangeNotifierProvier(create: (context) => AppSettings() ),
ChangeNotifierProvier(create: (context) =>
FavoritasRepository() ),
], // providers
child: MeuAplicativo(),
), // MultiProvider
);
}

================================

=== Build ======================

import 'package: flutter/[Link]';

class MeuAplicativo extends StatelessWidget {


const MeuAplicativo({Key? key}) : super(key: key);
@override
Wdget build(BuildContext context) {
return MaterialApp(
title: 'Cripto Moedas',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: [Link],
),
home: HomePage(),
); // MaterialApp
}
}

=================

== auth_service.dart ==================

class AuthService extends ChangeNotifier {

}
=======================================

=== android/app/src/main/[Link]

<manifest
...
package="[Link].cripto_moedas"
xmlns:tools="[Link]

<
android:name="[Link]"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="[Link]" />
<category android:name="[Link]" />
</intent-filter>
«/activity>
este >
<provider
android:name="[Link]*
android:authorities="${applicationId}.[Link].social_share"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="[Link].FILE_PROVIDER_PATHS"
android:resources"@xml/filepaths" />
</providers

======================================

=== android/app/src/main/res/xml/[Link] ===============

<?xml version="1.0" encoding="utf-8" ?>

<paths xmlns:android="http: //[Link]/apk/res/android">


<cache-path name="image” path="/" />
</paths>

==========================================

==== [Link] ======= no iOS ==================


...
</dict>

<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram-stories</string>
<string>facebook-stories</string>
<string>facebooks/string>
<string>instagrams/strins>
<string>twitters/string>
<string>whatsapp</string>
<string>tg</string>
</array>
</plist>

================================================

=== moedas_detalhes_page.dart =====

import 'package:social_share/social_share.dart';

compartilharPreco() {
final moeda = [Link];
[Link](
"Confira ${[Link]} por ${[Link]}",
);
}

@override
Widget build(BuildContext context) {
readNumberFormat();
conta = [Link]<ContaRepository>(context, liste: false);

return scaffold(
appBar: AppBar(
title: Text([Link])
actions: [
IconButton(
icon: Icon([Link]),
onPressed: compartilharPreco,
),
],
),
body: Padding(
padding: [Link](24),
child: Column(
children: [
Padding(
padding: [Link](bottom: 24),
child: Row(
mainAxisAlignment:
[Link],
),
),
],
),
),

=============================

You might also like