chnages has been made
This commit is contained in:
@@ -26,16 +26,11 @@ class Floatingnavbar extends StatelessWidget {
|
|||||||
final bottomPadding = MediaQuery.of(context).padding.bottom;
|
final bottomPadding = MediaQuery.of(context).padding.bottom;
|
||||||
|
|
||||||
return ClipRRect(
|
return ClipRRect(
|
||||||
|
|
||||||
borderRadius: BorderRadius.circular(45),
|
borderRadius: BorderRadius.circular(45),
|
||||||
|
|
||||||
child: BackdropFilter(
|
child: Container(
|
||||||
|
color: Colors.transparent,
|
||||||
filter: ImageFilter.blur(
|
|
||||||
sigmaX: 100,
|
|
||||||
sigmaY: 35,
|
|
||||||
|
|
||||||
),
|
|
||||||
|
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 70,
|
height: 70,
|
||||||
margin: EdgeInsets.only(
|
margin: EdgeInsets.only(
|
||||||
@@ -52,17 +47,18 @@ class Floatingnavbar extends StatelessWidget {
|
|||||||
|
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: items.asMap().entries.map((entry) {
|
children:
|
||||||
final index = entry.key;
|
items.asMap().entries.map((entry) {
|
||||||
final item = entry.value;
|
final index = entry.key;
|
||||||
final isSelected = selectedIndex == index;
|
final item = entry.value;
|
||||||
|
final isSelected = selectedIndex == index;
|
||||||
|
|
||||||
return _NavBarItemTile(
|
return _NavBarItemTile(
|
||||||
item: item,
|
item: item,
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
onTap: () => onTap(index),
|
onTap: () => onTap(index),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -4,22 +4,14 @@ class GradientLine extends StatelessWidget {
|
|||||||
final Color start;
|
final Color start;
|
||||||
final Color end;
|
final Color end;
|
||||||
|
|
||||||
const GradientLine({
|
const GradientLine({super.key, required this.start, required this.end});
|
||||||
super.key,
|
|
||||||
required this.start,
|
|
||||||
required this.end,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 2,
|
height: 2,
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 5),
|
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(gradient: LinearGradient(colors: [start, end])),
|
||||||
gradient: LinearGradient(
|
|
||||||
colors: [start, end],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ class WorkDayCard extends StatelessWidget {
|
|||||||
|
|
||||||
/// 🔥 FIXED: CENTERED LINES BETWEEN CIRCLES
|
/// 🔥 FIXED: CENTERED LINES BETWEEN CIRCLES
|
||||||
Row(
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
_StatusItem(
|
_StatusItem(
|
||||||
color: const Color(0xFFD16400),
|
color: const Color(0xFFD16400),
|
||||||
@@ -125,7 +126,11 @@ class _StatusItem extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
StatusCircle(color: color, icon: icon),
|
StatusCircle(color: color, icon: icon),
|
||||||
// const SizedBox(height: 3),
|
// const SizedBox(height: 3),
|
||||||
Text(label, textAlign: TextAlign.center, style: const TextStyle(fontSize: 12)),
|
Text(
|
||||||
|
label,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: const TextStyle(fontSize: 12),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
// This is a basic Flutter widget test.
|
|
||||||
//
|
|
||||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
|
||||||
// utility in the flutter_test package. For example, you can send tap and scroll
|
|
||||||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
|
||||||
// tree, read text, and verify that the values of widget properties are correct.
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
|
|
||||||
import 'package:coda_project/main.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
|
||||||
// Build our app and trigger a frame.
|
|
||||||
await tester.pumpWidget(const MyApp());
|
|
||||||
|
|
||||||
// Verify that our counter starts at 0.
|
|
||||||
expect(find.text('0'), findsOneWidget);
|
|
||||||
expect(find.text('1'), findsNothing);
|
|
||||||
|
|
||||||
// Tap the '+' icon and trigger a frame.
|
|
||||||
await tester.tap(find.byIcon(Icons.add));
|
|
||||||
await tester.pump();
|
|
||||||
|
|
||||||
// Verify that our counter has incremented.
|
|
||||||
expect(find.text('0'), findsNothing);
|
|
||||||
expect(find.text('1'), findsOneWidget);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user