Skip to content
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

creating class #262

Open
wants to merge 1 commit 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
24 changes: 22 additions & 2 deletions lib/provider/favorite_provider.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_component_ui/data/hive_database.dart';
import 'package:flutter/display.dart';

import '../data/export.dart';
import '../ui_components/messages/all_messages/bubble_message/message_2.dart';
Expand All @@ -8,7 +9,10 @@ import '../ui_components/messages/all_messages/bubble_message/message_4.dart';

Color? color;

class FavoritesProvider extends ChangeNotifier {
class Color {
}

class FavoritesProvider {
List<int> favs = [];

Map<int, Widget> widgetMap = {
Expand Down Expand Up @@ -641,10 +645,12 @@ class FavoritesProvider extends ChangeNotifier {
minHeight: 50.0,
maxHeight: 100.0,
),
child: const Bottom_Navbar4(),
child: const Bottom_Navbar4(), width: null,
),
};

Bottom_Navbar4 get newMethod1 => const Bottom_Navbar4();

final db = HiveDatabase();
void prepareData() {
if (db.readData().isNotEmpty) {
Expand All @@ -667,4 +673,18 @@ class FavoritesProvider extends ChangeNotifier {
bool starred(int index) {
return favs.contains(index);
}

static HiveDatabase() {}

static Container({required padding, required double width, required Button2 child}) {}
}

class BoxConstraints {
const BoxConstraints();
}

void notifyListeners() {}

class Button2 {
const Button2();
}
15 changes: 11 additions & 4 deletions lib/theme/theme.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package: favorite_provider.dart';

class MyTheme {
static ThemeData lightTheme(BuildContext context) => ThemeData(
Expand Down Expand Up @@ -41,8 +42,14 @@ class MyTheme {
);

//colors
static Color creamColor = const Color(0xfff5f5f5);
static Color darkcreamColor = const Color.fromARGB(255, 36, 41, 51);
static Color darkBluishColor = const Color(0xff403b58);
static Color lightBluishColor = const Color(0xFF3F51B5);
static Color creamColor = Color(0xfff5f5f5);
static Color darkcreamColor = newMethod();

Color newMethod() => const Color.fromARGB(255, 36, 41, 51);
static Color darkBluishColor = Color(0xff403b58);
static Color lightBluishColor = Color(0xFF3F51B5);
}

class Color {
Color(int i);
}