Skip to content

Commit

Permalink
Add page containing expected search results
Browse files Browse the repository at this point in the history
  • Loading branch information
patelneel55 committed Jan 2, 2021
1 parent 4b8362d commit 4af5ed0
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions frontend/memoree_client/lib/pages/video_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import 'package:flutter/material.dart';
import 'package:memoree_client/widgets/grid_results.dart';

class VideoPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
// return Container(
// padding: const EdgeInsets.only(top: 10.0),
// child: Column(
// children: <Widget>[
// Text()
// ],
// ),
// );
return FutureBuilder(
future: Future.delayed(Duration(seconds: 3)),
builder: (context, snapshot) {
switch(snapshot.connectionState) {
case ConnectionState.none:
case ConnectionState.waiting:
return Center(child: CircularProgressIndicator());
break;
case ConnectionState.active:
case ConnectionState.done:
return Padding(
padding: const EdgeInsets.only(top: 25.0),
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(20.0, 5, 20, 0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expanded(
flex: 9,
child: Text("Results for: ", textScaleFactor: 1.5, style: TextStyle(fontWeight: FontWeight.w500),),
),
Expanded(
flex: 2,
child: Text("98%", textAlign: TextAlign.right,)
)
],
),
),
Padding(
padding: const EdgeInsets.only(top: 8.0),
child: Divider(height: 1, thickness: 1.5,)
),
Expanded(
child: ContentGrid()
),
],
)
);
break;
}
return Container();
}
);
}
}

0 comments on commit 4af5ed0

Please sign in to comment.